Essentials + extra crap
Loadings Startups Movement Camera
This commit is contained in:
1 parent
662f4a1d05
commit
5f5ace1b52
734 files changed
+107323
-1713
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using KinematicCharacterController;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.Example.Liminal.Player
|
||||
{
|
||||
public class PlayerAnimator : MonoBehaviour
|
||||
{
|
||||
private static readonly int Velocity = Animator.StringToHash("Velocity");
|
||||
|
||||
[SerializeField] private Animator animator;
|
||||
[SerializeField] private KinematicCharacterMotor characterMotor;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
animator.SetFloat(Velocity, characterMotor.Velocity.magnitude);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user