Exemplo n.º 1
0
 private void KickBall(Player p, Ball b)
 {
 }
Exemplo n.º 2
0
 public override void OnCollision(GameObject other)
 {
     if (other is PowerUp)
     {
         powerOn = true;
     }
     if (other is Turret)
     {
         this.position = lastPosition;
     }
     if (other is Ball)
     {
         lastBallToHit = (Ball)other; // Finds which ball was last hit
     }
 }