示例#1
0
 public void Deactive(PhaseScreens screenType)
 {
     foreach (var screen in listUIScreen)
     {
         if (screen.GetScreenType() == screenType)
         {
             screen.Deactivate();
             onDeactiveCallback?.Invoke(screenType);
             onDeactiveCallback = null;
             return;
         }
     }
 }
示例#2
0
 public void Activate(PhaseScreens screenType, Plot plot)
 {
     Debug.Log((int)screenType);
     foreach (var screen in listUIScreen)
     {
         Debug.Log((int)(screen.GetScreenType()));
         if (screen.GetScreenType() == screenType)
         {
             screen.SetPlot(plot);
             screen.Activate();
             return;
         }
     }
 }
示例#3
0
 public void SubcribeOnDeactive(PhaseScreens screenType, OnDeactivate functionCallback)
 {
     onDeactiveCallback = functionCallback;
 }