From 4c362271f502b9999cd77e991271f16993d5c665 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 2 Aug 2021 18:58:01 +0800 Subject: *mics --- Assets/Scripts/Unit/UnitRootMotion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assets/Scripts/Unit/UnitRootMotion.cs') diff --git a/Assets/Scripts/Unit/UnitRootMotion.cs b/Assets/Scripts/Unit/UnitRootMotion.cs index 18e0093f..542b08fd 100644 --- a/Assets/Scripts/Unit/UnitRootMotion.cs +++ b/Assets/Scripts/Unit/UnitRootMotion.cs @@ -70,7 +70,7 @@ public class UnitRootMotion : UnitComponent public void UpdateRootMotion() { Vector3 dest = m_Owner.unitAnimation.animator.deltaPosition; - dest.x = 0; + dest.x = 0; //限制x轴始终在x=0 m_Owner.transform.position += dest; } -- cgit v1.1-26-g67d0