17 lines
512 B
C#
17 lines
512 B
C#
using KinematicCharacterController;
|
|
using UnityEngine;
|
|
|
|
namespace Code.OfficeGame.Player
|
|
{
|
|
public class EntityKCCAnimatorSync : MonoBehaviour
|
|
{
|
|
[SerializeField] private Animator animator;
|
|
[SerializeField] private KinematicCharacterMotor motor;
|
|
|
|
private void OnAnimatorMove()
|
|
{
|
|
// motor.MoveCharacter(motor.TransientPosition + animator.deltaPosition);
|
|
// motor.SetRotation(motor.TransientRotation * animator.deltaRotation);
|
|
}
|
|
}
|
|
} |