示例#1
0
 protected IEnumerator TryOpen(HUDPanel panel)
 {
     while (panel.gameObject.activeSelf == false)
     {
         panel.gameObject.SetActive(true);
         yield return(null);
     }
 }
示例#2
0
 public virtual void HideTopPanel()
 {
     if (states.Count > 0)
     {
         HUDPanel panel = states.Pop();
         panel.gameObject.SetActive(false);
     }
 }
示例#3
0
 public override void HideTopPanel()
 {
     if (states.Count > 0)
     {
         HUDPanel panel = states.Pop();
         panel.gameObject.SetActive(false);
     }
     else
     {
         Input_ShowQuitConfirm();
     }
 }
示例#4
0
 public void ShowPanel(HUDPanel panel)
 {
     states.Push(panel);
     StartCoroutine(TryOpen(panel));
 }
示例#5
0
 public void Input_ShowPanel(HUDPanel panel)
 {
     ShowPanel(panel);
 }