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