void OnApplicationQuit() { Assert.IsNotNull(Instance); Instance = null; m_luaMgr.Close(); m_luaMgr = null; }
/// <summary> /// 初始化 /// </summary> private void Init() { Assert.IsNull(Instance); Instance = this; DontDestroyOnLoad(gameObject); Screen.sleepTimeout = SleepTimeout.NeverSleep; Application.targetFrameRate = KTConfigs.kGameFrameRate; m_luaMgr = new KTLuaManager(); }