Beispiel #1
0
 void HidePlayerSelectButton()
 {
     GameObject[] SelectButtons = GameObject.FindGameObjectsWithTag("PlayerSelectButton");
     foreach (GameObject SelectButton in SelectButtons)
     {
         SelectButton.GetComponent <Button> ().interactable = true;
     }
 }
Beispiel #2
0
 public void TurnTruePlayerButtons()
 {
     GameObject[] SelectButtons = GameObject.FindGameObjectsWithTag("PlayerButton");
     foreach (GameObject SelectButton in SelectButtons)
     {
         SelectButton.GetComponent <Button> ().interactable = true;
     }
     GameObject[] SelectButtonsCanvas = GameObject.FindGameObjectsWithTag("PlayerButtonCanvas");
     foreach (GameObject SelectButtonCanvas in SelectButtonsCanvas)
     {
         SelectButtonCanvas.GetComponent <GraphicRaycaster> ().enabled = true;
     }
 }