예제 #1
0
 public override void EnterState(BaseFSM fsm)
 {
     base.EnterState(fsm);
     gun = fsm.GetComponent <wzx.Gun>();
     fsm.GetComponentInChildren <AnimationEventBehaviour>().attackHandler += DoFiring;
 }
예제 #2
0
 protected void Awake()
 {
     gun       = GetComponent <wzx.Gun>();
     animEvent = GetComponentInChildren <AnimationEventBehaviour>();
 }