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