Ejemplo n.º 1
0
 public override void OnCombatEvent(CombatEvent Event)
 {
     if (Event is NpcDieEvent)
     {
         Fsm.ChangeToState(FsmStateName.Die, Event);
     }
 }
Ejemplo n.º 2
0
 public override void OnCombatEvent(CombatEvent Event)
 {
     if (Event is NpcWalkEvent)
     {
         Fsm.ChangeToState(FsmStateName.Walk, Event);
     }
     else if (Event is NpcSkillEvent)
     {
         Fsm.ChangeToState(FsmStateName.Skill, Event);
     }
     else if (Event is NpcDieEvent)
     {
         Fsm.ChangeToState(FsmStateName.Die, Event);
     }
     else if (Event is NpcBackEvent)
     {
         Fsm.ChangeToState(FsmStateName.Back, Event);
     }
 }