using System.Collections; using System.Collections.Generic; using UnityEngine; // 同步root motion到角色根节点 [DisallowMultipleComponent] public class UnitRootMotion : MonoBehaviour { Transform m_Root; Animator m_Animator; private void Awake() { m_Root = transform.parent; m_Animator = GetComponent(); } public Vector3 UpdateRootMotion() { return Vector3.zero; } }