MyPolarBear.GameObjects.PolarBear.giveAttackCommand C# (CSharp) 메소드

giveAttackCommand() 개인적인 메소드

private giveAttackCommand ( String targetType ) : void
targetType String
리턴 void
        private void giveAttackCommand(String targetType)
        {
            foreach (Entity ene in UpdateKeeper.getInstance().getEntities())
            {
                if (ene is Enemy && ((Enemy)ene).CurrentState == Enemy.State.Following)
                {
                    ((Enemy)ene).AddCommand(new AttackAI(ene, targetType));
                }
            }
        }