Esempio n. 1
0
        public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
        {
            var shipDriver = animator.gameObject.GetComponent <ShipDriver>();

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

            LaneChangeUtil.StartChange(shipDriver, Type);
        }