コード例 #1
0
        public static string GetValueByKey(this LuaTable table, string key)
        {
            var keyList = table.Keys.OfType <object>().ToList();

            if (keyList.Contains(key))
            {
                return(table.GetStringByIndex(keyList.IndexOf(key)));
            }

            return(null);
        }