Example #1
0
 // make sure lua state finalize at last
 // make sure LuaSvrGameObject excute order is max(9999)
 void OnDestroy()
 {
     if (state != null)
     {
         state.Close();
         state = null;
     }
 }
Example #2
0
        public void uninit()
        {
            SimpleLogger.DEBUG("LuaSvr", "uninit start");

            luaState.Close();

            SimpleLogger.DEBUG("LuaSvr", "uninit end");
        }
Example #3
0
 public void Close()
 {
     if (!inited)
     {
         return;
     }
     inited = false;
     main   = null;
     luaState.Close();
     luaState = null;
 }
Example #4
0
        // make sure lua state finalize at last
        // make sure LuaSvrGameObject excute order is max(9999)
        void OnDestroy()
        {
            if (state != null)
            {
                if (di != null)
                {
                    di.close();
                    di = null;
                }

                state.Close();
                state = null;
            }
        }