public override void Dispose() { if (IsDisposed) { return; } base.Dispose(); this.m_AllHotfixFuis.Clear(); Root.Dispose(); Root = null; }
public void Add(string name, FUI ui, bool asChildGObject = true) { if (m_AllHotfixFuis.TryGetValue(name, out var fui)) { Log.Error($"已有名为:{name} 的FUI,请勿重复添加!"); fui.Dispose(); return; } else { m_AllHotfixFuis[name] = ui; Root?.Add(ui, asChildGObject); } }