private void HideAllAccountPanel() { LoginOrRegisterPanel.SetActive(false); LoginPanel.SetActive(false); RegisterPanel.SetActive(false); EnternPanel.SetActive(false); }
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; } }