private void Awake() { if (Instance == null) { Instance = this; } else { DestroyImmediate(this.gameObject); } }
private void Start() { _gs = GameSettings.Instance; if (_gs == null) { Debug.LogError("NumPadCTRL: no gm in scene!"); } _ElevatorDoorsCTRL = ElevatorDoorsMasterControl.Instance; if (_ElevatorDoorsCTRL == null) { Debug.LogError("no static elevator door ctrl in scene!"); } _eventManager = BellHopGameEventManager.Instance; if (_eventManager == null) { Debug.LogError("no static game Event manger in scene!"); } // ElevatorWall.SetActive(false); // BunnyHop.SetActive(false); ButtonsCanvas.SetActive(false); }