Esempio n. 1
0
 internal void checkTop()
 {
     if (LuaDLL.lua_gettop(L) != errorReported)
     {
         errorReported = LuaDLL.lua_gettop(L);
         Logger.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(L, errorReported)));
     }
 }
Esempio n. 2
0
        void tick()
        {
            if (!inited)
            {
                return;
            }

            if (LuaDLL.lua_gettop(luaState.L) != errorReported)
            {
                errorReported = LuaDLL.lua_gettop(luaState.L);
                Logger.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(luaState.L, errorReported)));
            }

            luaState.checkRef();
                        #if !SLUA_STANDALONE
            LuaTimer.tick(Time.deltaTime);
                        #endif
        }
Esempio n. 3
0
        void tick()
        {
            if (LuaDLL.lua_gettop(luaState.L) != errorReported)
            {
                errorReported = LuaDLL.lua_gettop(luaState.L);
                Debug.LogError(string.Format("Some function not remove temp value({0}) from lua stack. You should fix it.", LuaDLL.luaL_typename(luaState.L, errorReported)));
            }

            luaState.checkRef();
            LuaTimer.tick(Time.deltaTime);
        }