示例#1
0
 public void ShowConfirm(bool y)
 {
     if (y)
     {
         ConfirmPanel.SetActive(true);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         InfoButton.GetComponent <Button>().interactable           = false;
         SettingsButton.GetComponent <Button>().interactable       = false;
         AccountBtnIcon.GetComponent <Button>().interactable       = false;
         LeaderButton.GetComponent <Button>().interactable         = false;
         PlayScreen.GetComponentInChildren <Button>().interactable = false;
         Camera.GetComponent <CameraController>().enabled          = false;
     }
     else
     {
         ConfirmPanel.SetActive(false);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         InfoButton.GetComponent <Button>().interactable           = true;
         SettingsButton.GetComponent <Button>().interactable       = true;
         PlayScreen.GetComponentInChildren <Button>().interactable = true;
         AccountBtnIcon.GetComponent <Button>().interactable       = true;
         LeaderButton.GetComponent <Button>().interactable         = true;
         Camera.GetComponent <CameraController>().enabled          = true;
     }
 }