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); } } } }