예제 #1
0
 public override void Close()
 {
     base.Close();
     if (CloseCallBack != null)
     {
         CloseCallBack();
     }
     if (UIManager.DestroyPanel.Contains(panelname))
     {
         Instance = null;
     }
 }
예제 #2
0
 private void Awake()
 {
     Instance = this;
     InitDeletePanel();
     Root3D          = GameObject.Find("3DRoot");
     BottomPanelRoot = transform.FindChild("BottomPanel");
     PopPanelRoot    = transform.FindChild("PopPanel");
     TopPanelRoot    = transform.FindChild("TopPanel");
     CacheRoot       = transform.FindChild("CacheRoot");
     MainLobbyPanel.Show();
     MainUIPanel.Show();
     ChatPanel.Show();
     if (PlayerManager.BonusList.Count > 0)
     {
         LoginBonusPanel.Show(MainUIPanel.Instance.UpdatePanel);
     }
     CurrentPanel = "MainLobbyPanel";
     LastPanel    = "MainLobbyPanel";
 }