예제 #1
0
 /// <summary>
 /// Create and spawn the projectile(s) from a firing from this weapon.
 /// </summary>
 /// <param name="direction">The direction that the projectile will move.</param>
 protected override void CreateProjectiles(Vector2 direction)
 {
     // create the new projectile
     RocketProjectile projectile = new RocketProjectile(owner, direction);
     projectile.Initialize();
     owner.Projectiles.Add(projectile);
 }
예제 #2
0
        /// <summary>
        /// Create and spawn the projectile(s) from a firing from this weapon.
        /// </summary>
        /// <param name="direction">The direction that the projectile will move.</param>
        protected override void CreateProjectiles(Vector2 direction)
        {
            // create the new projectile
            RocketProjectile projectile = new RocketProjectile(owner, direction);

            projectile.Initialize();
            owner.Projectiles.Add(projectile);
        }