コード例 #1
0
 public void ShowLeaderBoardPanel(bool r)
 {
     if (r)
     {
         leaderboardWindow.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
     {
         leaderboardWindow.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;
     }
 }
コード例 #2
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;
     }
 }
コード例 #3
0
 public void ShowSettingsPanel(bool t)
 {
     if (t)
     {
         //InfoButton.SetActive (false);
         //SettingsButton.SetActive (false);
         //PlayScreen.SetActive (false);
         //AccountBtnIcon.SetActive (false);
         SettingsPanel.SetActive(true);
         LeaderButton.GetComponent <Button>().interactable = false;
         Camera.GetComponent <CameraController>().enabled  = false;
     }
     else
     {
         SettingsPanel.SetActive(false);
         //InfoButton.SetActive (true);
         //SettingsButton.SetActive (true);
         //PlayScreen.SetActive (true);
         //AccountBtnIcon.SetActive (true);
         LeaderButton.GetComponent <Button>().interactable = true;
         Camera.GetComponent <CameraController>().enabled  = true;
     }
 }