Esempio n. 1
0
 public void Winner(Color WinnerColor)
 {
     Win.GetComponent <Text>().color  = WinnerColor;
     Win2.GetComponent <Text>().color = WinnerColor;
     Win.SetActive(true);
     Win2.SetActive(true);
 }
Esempio n. 2
0
    static internal void ShowWin2(Win1 win1)
    {
        Win2 win2 = new Win2();

        // Copy Win1 stuff to Win2 here
        Application.Current.MainWindow = win2;
        win2.Show();
    }
 // 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);
     }
 }