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