Beispiel #1
0
        protected override void Awake()
        {
            GetComponent <AppBootstrap>().InitManagers();

            base.Awake();
            DontDestroyOnLoad(this);

            GlobalUI.Init();
        }
Beispiel #2
0
        void Awake()
        {
            if (FindObjectOfType(typeof(AudioManager)) == null)
            {
                Instantiate(AudioManager);
            }

            if (FindObjectOfType(typeof(EventSystem)) == null)
            {
                Instantiate(EventsManager);
            }

            // init the mighty GlobalUI
            GlobalUI.Init();
        }