static int Close(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.LuaManager obj = (Framework.LuaManager)ToLua.CheckObject <Framework.LuaManager>(L, 1);
         obj.Close();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 析构函数
 /// </summary>
 private void OnDestroy()
 {
     LuaManager.Close();
     Debug.Log("~GameManager was destroyed");
 }