Example #1
0
        public static void Start(AppBase appBase)
        {
            if (_appBase != null)
            {
                return;
            }

            _appBase = appBase;
            UnityEngine.Object.DontDestroyOnLoad(_appBase.gameObject);

            UIManager.Init();
        }
Example #2
0
        public static void Destroy()
        {
            if (_appBase == null)
            {
                return;
            }

            //UIManager.Destroy();
            //SceneManager.Destroy();
            UnityEngine.Object.Destroy(_appBase.gameObject);
            _appBase = null;
            GC.Collect();
        }