void Awake() { CoreEnv.CoreDriver = this; Instance = this; _LifeCycle = null; InitFinished = false; DontDestroyOnLoad(gameObject); Screen.sleepTimeout = (int)SleepTimeout.NeverSleep; Application.targetFrameRate = 60; WrapHelper.InitLibrary(); }
void OnApplicationQuit() { _LifeCycle.Singletons.Exit(); if (CoreEnv._World != null) { CoreEnv._World.UnInit(); } WrapHelper.FreeLibrary(); LogHelper.DEBUG("CoreEntry", "Core Quit"); }