void HidePlayerSelectButton() { GameObject[] SelectButtons = GameObject.FindGameObjectsWithTag("PlayerSelectButton"); foreach (GameObject SelectButton in SelectButtons) { SelectButton.GetComponent <Button> ().interactable = true; } }
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; } }