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