Пример #1
0
 public override void Visit(SkillState skillState)
 {
     if (skillState.IsEnd())
     {
         BasicState basicState = player.GetBasicState();
         basicState.Stop();
         player.SetState(basicState);
     }
 }
Пример #2
0
 public override void Visit(SkillState skillState)
 {
     if (skillState.IsEnd())
     {
         BasicState basicState = player.GetBasicState();
         basicState.ChaseTarget(targetUnit);
         player.SetState(basicState);
     }
 }
Пример #3
0
 public override void Visit(SkillState skillState)
 {
     if (skillState.IsEnd())
     {
         BasicState basicState = player.GetBasicState();
         basicState.MoveTo(destination);
         player.SetState(basicState);
     }
 }