From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Client/Assembly-CSharp/ConditionalHide.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Client/Assembly-CSharp/ConditionalHide.cs (limited to 'Client/Assembly-CSharp/ConditionalHide.cs') diff --git a/Client/Assembly-CSharp/ConditionalHide.cs b/Client/Assembly-CSharp/ConditionalHide.cs new file mode 100644 index 0000000..5915f4f --- /dev/null +++ b/Client/Assembly-CSharp/ConditionalHide.cs @@ -0,0 +1,21 @@ +using System; +using UnityEngine; + +public class ConditionalHide : MonoBehaviour +{ + public RuntimePlatform[] HideForPlatforms = new RuntimePlatform[] + { + RuntimePlatform.WindowsPlayer + }; + + private void Awake() + { + for (int i = 0; i < this.HideForPlatforms.Length; i++) + { + if (this.HideForPlatforms[i] == RuntimePlatform.WindowsPlayer) + { + base.gameObject.SetActive(false); + } + } + } +} -- cgit v1.1-26-g67d0