Inheritance: WindowMediator, IMediator, INotifier
Example #1
0
 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);
 }
Example #2
0
 /// <summary>
 /// The set mediator.
 /// </summary>
 /// <param name="m">
 /// The mediator.
 /// </param>
 internal void SetMediator(MediatorBase m)
 {
     this.mediator = m;
 }
Example #3
0
 public void SetMediator(MediatorBase mediator)
 {
     _mediator = mediator;
 }
Example #4
0
 /// <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;
 }