Esempio n. 1
0
        public ThreadStatus L_DoString(string s)
        {
            ThreadStatus status = (ThreadStatus)LuaAPI.luaL_loadstring(this.m_lua, s);

            if (status != ThreadStatus.LUA_OK)
            {
                Debug.LogError(ToString(-1));
                return(status);
            }
            status = (ThreadStatus)LuaAPI.lua_pcall(this.m_lua, 0, -1, 0);
            if (status != ThreadStatus.LUA_OK)
            {
                Debug.LogError(ToString(-1));
            }
            return(status);
        }