Esempio n. 1
0
        /// <summary> Gets the function called name from the provided table, returning null if it does not exist</summary>
        public static LuaFunction getTableFunction(LuaTable luaTable, string name)
        {
            object o       = luaTable.RawGet(name);
            var    funcObj = o as LuaFunction;

            if (funcObj != null)
            {
                return(funcObj);
            }
            o.TryDispose();
            return(null);
        }