Beispiel #1
0
 private void OnCollisionEnter(Collision other)
 {
     if (other.gameObject.tag == "Ball")
     {
         Ball ball = other.gameObject.GetComponent <Ball>();
         pointsController.AddScore(ball.pointsMultiplier * points);
         pointsController.AddTargetShoot();
         Destroy(gameObject);
     }
 }