Пример #1
0
        private object _GetObject(string[] remainingPath)
        {
            object returnValue = null;

            for (int i = 0; i < remainingPath.Length; i++)
            {
                LuaLib.LuaPushString(luaState, remainingPath[i]);
                LuaLib.LuaGetTable(luaState, -2);
                returnValue = LuaExecuter._ParseLuaValue(luaState, -1);

                if (returnValue == null)
                {
                    break;
                }
            }

            return(returnValue);
        }