AbstractFactory.EnemyShip.FollowHeroShip C# (CSharp) 메소드

FollowHeroShip() 공개 메소드

public FollowHeroShip ( ) : void
리턴 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