protected override void Awake() { GetComponent <AppBootstrap>().InitManagers(); base.Awake(); DontDestroyOnLoad(this); GlobalUI.Init(); }
void Awake() { if (FindObjectOfType(typeof(AudioManager)) == null) { Instantiate(AudioManager); } if (FindObjectOfType(typeof(EventSystem)) == null) { Instantiate(EventsManager); } // init the mighty GlobalUI GlobalUI.Init(); }