AbstractFactory.EnemyShip.Shoot C# (CSharp) Method

Shoot() public method

public Shoot ( ) : void
return void
        public void Shoot()
        {
            Debug.Log (name + " shoots and does " + weapon.ToString());
        }

Usage Example

        public EnemyShip orderShip(ShipType type)
        {
            EnemyShip ship = MakeEnemyShip(type);

            ship.MakeShip();
            ship.DisplayShip();
            ship.FollowHeroShip();
            ship.Shoot();

            return(ship);
        }