public static void RemoveCache(string name) { if (mCacheUIPanel.TryGetValue(name, out WindowCacheData data)) { mFrontEventList.TryGetValue(name, out FrontEventCtrl ctrl); if (ctrl != null) { Object.Destroy(ctrl.gameObject); mFrontEventList.Remove(name); } else if (data.obj != null) { Object.Destroy(data.obj); data.obj = null; } mCacheUIPanel.Remove(name); } MediatorBase.Remove(name); }
/// <summary> /// The set mediator. /// </summary> /// <param name="m"> /// The mediator. /// </param> internal void SetMediator(MediatorBase m) { this.mediator = m; }
public void SetMediator(MediatorBase mediator) { _mediator = mediator; }
/// <summary> /// Initializes a new instance of the <see cref="ColleagueBase"/> class. /// </summary> /// <param name="mediator"> /// The mediator. /// </param> protected ColleagueBase(MediatorBase mediator) { this.mediator = mediator; }