示例#1
0
 public override void OnFixedUpdate(CatController controller)
 {
     if (controller._rigidbody.velocity.sqrMagnitude > .1f)
     {
         controller.ChangeState(new MovingState());
     }
 }
示例#2
0
            private IEnumerator DisableKicked(CatController controller)
            {
                yield return(new WaitForSeconds(controller.trailTime));

                controller.ChangeState(new MovingState());
            }