Esempio n. 1
0
 public override void EnterState(BaseFSM fsm)
 {
     base.EnterState(fsm);
     gun = fsm.GetComponent <wzx.Gun>();
     fsm.GetComponentInChildren <AnimationEventBehaviour>().attackHandler += DoFiring;
 }
Esempio n. 2
0
 public override void ExitState(BaseFSM fsm)
 {
     base.ExitState(fsm);
     fsm.GetComponentInChildren <AnimationEventBehaviour>().attackHandler -= DoFiring;
 }
 public override void EnterState(BaseFSM fsm)
 {
     base.EnterState(fsm);
     gun = fsm.gun;
     fsm.GetComponentInChildren <AnimationEventBehaviour>().OnAttackHandler += DoShooting;
 }