Example #1
0
 void Update()
 {
     if (playerlifes <= 0)
     {
         gamecontroller.Replay();
     }
     if (playerlifes >= 0)
     {
         text.text = "X " + playerlifes;
     }
 }