Ejemplo n.º 1
0
 public abstract bool PickupProjectile( ProjectilePickup proj );
Ejemplo n.º 2
0
 /// <summary>
 /// Called when the tank should pick up a ProjectilePickup.
 /// </summary>
 /// <param name="proj">The projectile pickup.</param>
 /// <returns>True if the projectile was picked up - otherwise false.</returns>
 public bool PickupProjectile( ProjectilePickup proj )
 {
     if ( nextProjectile.GetType() == OriginalProjectile.GetType() && ( Controller == null || Controller.PickupProjectile( proj ) ) )
     {
         nextProjectile = proj.Carrier.Clone();
         powerUpSound.Play();
         return true;
     }
     return false;
 }