summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs')
-rw-r--r--Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs b/Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs
index dbd4dd49..8d737277 100644
--- a/Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs
+++ b/Assets/Scripts/Unit/Components/UnitAnimation/PCAnimation.cs
@@ -68,7 +68,7 @@ public class PCAnimation : UnitAnimation
private UnitActionData m_ActionData;
- public bool applyRootMotion { get; set; }// 动态设置root motion
+ public bool applyRootMotion { get; set; }
public bool applyRootCurve { get; set; } // 程序生成的root motion
public bool updateAnimationAuto { get; private set; } // 自动更新动画
@@ -129,6 +129,7 @@ public class PCAnimation : UnitAnimation
{
if (!applyRootMotion)
return;
+
m_Owner.unitRootMotion.UpdateRootMotion();
}