Exemplo n.º 1
0
 public void SetRounds(string Winner)
 {
     WhoWon = Winner;
     //Debug.Log("hello");
     if (WhoWon == "player1")
     {
         Player2Rounds += 1;
     }
     else if (WhoWon == "player2")
     {
         Player1Rounds += 1;
     }
     timey.Reset();
     if (Player1Rounds == 3)
     {
         GameOver = true;
         cammy.Movey(-94.51f, -13.49f);
     }
     else if (Player2Rounds == 3)
     {
         GameOver = true;
         cammy.Movey(-94.95f, 13.07f);
     }
     Score1.text = Player1Rounds.ToString();
     Score2.text = Player2Rounds.ToString();
     // GameOver = true;
 }