public void Winner(Color WinnerColor) { Win.GetComponent <Text>().color = WinnerColor; Win2.GetComponent <Text>().color = WinnerColor; Win.SetActive(true); Win2.SetActive(true); }
// Update is called once per frame void Update() { Score1text.text = "" + Point1; Score2text.text = "" + Point2; if (Point1 == 11) { Win1.SetActive(true); } if (Point2 == 11) { Win2.SetActive(true); } }