Example #1
0
 public void Clear()
 {
     if (currentlyShownControl != null)
     {
         currentlyShownControl.Hide();
         currentlyShownControl = null;
     }
 }
Example #2
0
 void OnControlHidden(UILevelControl control)
 {
     control.HiddenEvent -= OnControlHidden;
     if (control is UISoldierChoiceMultiple uiSoldierChoiceMultiple)
     {
         uiSoldierChoiceMultiple.GoButtonClickedEvent -= OnGoButtonClicked;
     }
     else if (control is UITrapChoiceClouds uiTrapChoice)
     {
         uiTrapChoice.TrapChosenEvent -= OnTrapChosen;
     }
     else if (control is UISoldierChoice uiSoldierChoice)
     {
         uiSoldierChoice.SoldierClickedEvent -= OnSoldierClicked;
     }
 }
Example #3
0
 void OnControlShown(UILevelControl control)
 {
     currentlyShownControl = control;
 }
Example #4
0
 void OnControlHidden(UILevelControl control)
 {
     currentlyShownControl = null;
 }