ScrollingShooter.GameObjectManager.CreateProjectile C# (CSharp) Method

CreateProjectile() public method

Factory method for spawning a projectile
public CreateProjectile ( ProjectileType projectileType, Vector2 position ) : ScrollingShooter.Projectile
projectileType ProjectileType The type of projectile to create
position Vector2 The position of the projectile in the game world
return ScrollingShooter.Projectile
        public Projectile CreateProjectile(ProjectileType projectileType, Vector2 position)
        {
            return CreateProjectile(projectileType, position, Vector2.Zero);
        }

Same methods

GameObjectManager::CreateProjectile ( ProjectileType projectileType, Vector2 position, Vector2 velocity ) : ScrollingShooter.Projectile