Beispiel #1
0
 private void HideAllAccountPanel()
 {
     LoginOrRegisterPanel.SetActive(false);
     LoginPanel.SetActive(false);
     RegisterPanel.SetActive(false);
     EnternPanel.SetActive(false);
 }
Beispiel #2
0
    public void ShowAccountPanel(AccountPanel type)
    {
        HideAllAccountPanel();

        switch (type)
        {
        case AccountPanel.LoginOrRegister:
            LoginOrRegisterPanel.SetActive(true);
            break;

        case AccountPanel.Login:
            LoginPanel.SetActive(true);
            break;

        case AccountPanel.Register:
            RegisterPanel.SetActive(true);
            break;

        case AccountPanel.Disabled:
            EnternPanel.SetActive(true);
            break;
        }
    }