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); }
public bool TryGetHandler(string fileName, out LoadLuaHandler handler) => this.m_Handlers.TryGetValue(fileName, out handler);