public void OpenPanel(AbstractPanel panel)
        {
            if (m_CurrentPanel == null || panel.name != m_CurrentPanel?.name)
            {
                panel.OpenPanel();

                m_CurrentPanel?.ClosePanel();
                m_CurrentPanel = panel;
            }
        }
Exemple #2
0
        public bool haveCurrentUser(AbstractPanel parentPanel)
        {
            AGConnectUser user = AGConnectAuth.getInstance().getCurrentUser();

            if (user == null)
            {
                return(false);
            }
            ParentPanel = parentPanel;
            PanelController.getInstance()
            .OpenPanel(PanelController.getInstance().GetComponentInChildren <UserAccount>());
            return(true);
        }
 public void OnClose()
 {
     m_CurrentPanel?.ClosePanel();
     m_CurrentPanel = null;
 }
 public void OnBack()
 {
     m_CurrentPanel.Back();
     m_CurrentPanel = m_CurrentPanel.ParentPanel;
 }