Exemplo n.º 1
0
 /// <summary>
 /// Closes the active panel(if any).
 /// </summary>
 public void Close()
 {
     if (_currentPanel != null && _currentPanel.gameObject.activeSelf)
     {
         _currentPanel.Close();
         _currentPanel = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 패널 활성/비활성 처리
 /// </summary>
 /// <param name="panel">처리할 패널 객체</param>
 void ActivatedPanel(BasePanel panel)
 {
     // 패널이 비활성화라면 활성화
     if (panel.gameObject.activeSelf == false)
     {
         panel.Show();
     }
     else
     {
         panel.Close();
     }
 }