public void RunVisitor(ICharactorVisitor visitor)
        {
            foreach (ICharacter character in mEnemysLst)
            {
                character.RunVisitor(visitor);
            }

            foreach (ICharacter character in mSoldiersLst)
            {
                character.RunVisitor(visitor);
            }
        }
Пример #2
0
 public override void RunVisitor(ICharactorVisitor visitor)
 {
     visitor.VisitSoldier(this);
 }
 public void RunVisitor(ICharactorVisitor visitor)
 {
     mCharacterSystem.RunVisitor(visitor);
 }
Пример #4
0
 public override void RunVisitor(ICharactorVisitor visitor)
 {
     visitor.VisitEnemy(this);
 }