Exemplo n.º 1
0
        void Awake()
        {
            CoreEnv.CoreDriver = this;
            Instance           = this;
            _LifeCycle         = null;
            InitFinished       = false;
            DontDestroyOnLoad(gameObject);

            Screen.sleepTimeout         = (int)SleepTimeout.NeverSleep;
            Application.targetFrameRate = 60;

            WrapHelper.InitLibrary();
        }
Exemplo n.º 2
0
        void OnApplicationQuit()
        {
            _LifeCycle.Singletons.Exit();

            if (CoreEnv._World != null)
            {
                CoreEnv._World.UnInit();
            }

            WrapHelper.FreeLibrary();

            LogHelper.DEBUG("CoreEntry", "Core Quit");
        }