public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { var shipDriver = animator.gameObject.GetComponent <ShipDriver>(); shipDriver.AddBoost(); LaneChangeUtil.EndChange(shipDriver); }
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { var shipDriver = animator.gameObject.GetComponent <ShipDriver>(); LaneChangeUtil.StartChange(shipDriver, Type); }