Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "ball")
     {
         scoresManager.UpdateScore(pad);
         Respawn ball = other.GetComponent <Respawn>();
         if (ball != null)
         {
             ball.ResetBall();
         }
     }
 }