AbstractFactory.EnemyShip.FollowHeroShip C# (CSharp) Method

FollowHeroShip() public method

public FollowHeroShip ( ) : void
return void
        public void FollowHeroShip()
        {
            Debug.Log (name + " follows hero ship with " + engine.ToString());
        }

Usage Example

        public EnemyShip orderTheShip(ShipType typeOfShip)
        {
            EnemyShip theEnemyShip = MakeEnemyShip(typeOfShip);

            theEnemyShip.MakeShip();
            theEnemyShip.DisplayEnemyShip();
            theEnemyShip.FollowHeroShip();
            theEnemyShip.EnemyShipShoots();

            return(theEnemyShip);
        }
All Usage Examples Of AbstractFactory.EnemyShip::FollowHeroShip