Example #1
0
 public void Wander()
 {
     if (_movementBehaviour.CharacterVelocity.magnitude < 1f)
     {
         playerAnimation.Play("idle");
     }
     else
     {
         playerAnimation.Play("walk");
     }
     _movementBehaviour.ReynoldsWander(3f, Time.fixedDeltaTime);
     _movementBehaviour.MaxSpeed = originalMaxSpeed / 2f; //walk slower
 }