|
@ -33,7 +33,7 @@ public class RemotePlayer : Player { |
|
|
float setSpeed = Mathf.Lerp(LastSpeed, DesiredSpeed, 0.1f); |
|
|
float setSpeed = Mathf.Lerp(LastSpeed, DesiredSpeed, 0.1f); |
|
|
|
|
|
|
|
|
Animator.SetFloat("WalkSpeed", setSpeed); |
|
|
Animator.SetFloat("WalkSpeed", setSpeed); |
|
|
Debug.Log(setSpeed); |
|
|
|
|
|
|
|
|
//Debug.Log(setSpeed);
|
|
|
LastSpeed = setSpeed; |
|
|
LastSpeed = setSpeed; |
|
|
|
|
|
|
|
|
PlayerModel.transform.LookAt(PlayerModel.transform.position + dir, Vector3.up); |
|
|
PlayerModel.transform.LookAt(PlayerModel.transform.position + dir, Vector3.up); |
|
|