Ejemplo n.º 1
0
 public void ShowAcountPanel(bool e)
 {
     if (e)
     {
         AcountPanel.SetActive(true);
         AccountButton.SetActive(false);
         InfoButton.SetActive(false);
         SettingsButton.SetActive(false);
         LeaderButton.SetActive(false);
         PlayScreen.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         Camera.GetComponent <CameraController>().enabled = false;
     }
     else
     {
         AcountPanel.SetActive(false);
         AccountButton.SetActive(true);
         InfoButton.SetActive(true);
         SettingsButton.SetActive(true);
         LeaderButton.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         PlayScreen.SetActive(true);
         Camera.GetComponent <CameraController>().enabled = true;
     }
 }