Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (controller1 != null && controller1.IsDead())
     {
         panel.SetActive(true);
         winnerText.text = players[1].getName() + " WINS";
     }
     else if (controller2 != null && controller2.IsDead())
     {
         panel.SetActive(true);
         winnerText.text = players[0].getName() + " WINS";
     }
 }