using System; using UnityEngine; public class EnableOnPlatform : PlatformActive { private void Awake() { base.gameObject.SetActive(this._enableOn == base.CurrentPlatform); } [SerializeField] private PlatformActive.Platform _enableOn; }