// main event void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } }
private void InitManagers() { if (!spawnManager) { spawnManager = SpawnPlatforms_Plt2D.Instance; } if (!levelManager) { levelManager = LevelManager.Instance; } if (!menuManager) { menuManager = UI_Plt2D.Instance; } if (!soundManager) { soundManager = BaseSoundController.Instance; } }