示例#1
0
        public void Add(string fileName, LoadLuaHandler handler)
        {
            if (m_Handlers.ContainsKey(fileName))
            {
                Debug.LogError($"[TinaX.Lua] Add \"CustomLoadHandler\" failed, the file name \"{fileName}\" already exists");
                return;
            }

            m_Handlers.Add(fileName, handler);
        }
示例#2
0
 public bool TryGetHandler(string fileName, out LoadLuaHandler handler)
 => this.m_Handlers.TryGetValue(fileName, out handler);