diff options
author | chai <chaifix@163.com> | 2021-09-02 16:50:41 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-02 16:50:41 +0800 |
commit | 7a73788fec18aa8648a4ff7d1d86760b22908513 (patch) | |
tree | 1ee29f40478c036667d15b809ae46105cfbeeb16 /Assets/ActionTool/Editor/ActionManager.cs | |
parent | adb364a79f5dd69de08f72072cc2261131314e53 (diff) |
*misc
Diffstat (limited to 'Assets/ActionTool/Editor/ActionManager.cs')
-rw-r--r-- | Assets/ActionTool/Editor/ActionManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Assets/ActionTool/Editor/ActionManager.cs b/Assets/ActionTool/Editor/ActionManager.cs index 7c3f1df4..fd9c15d2 100644 --- a/Assets/ActionTool/Editor/ActionManager.cs +++ b/Assets/ActionTool/Editor/ActionManager.cs @@ -55,6 +55,7 @@ namespace ActionTool private static GameObject s_CurrentUnit;
private static string s_CurrentAnimationName;
+ public static GameObject unitInstance { get { return s_UnitInstance; } }
private static GameObject s_UnitInstance;
private static Animator s_Animator;
private static AnimatorOverrideController s_OverrideContorller;
@@ -130,7 +131,7 @@ namespace ActionTool {
get
{
- bool hasRM = animationData != null && animationData.overrideRootMotion != null;
+ bool hasRM = animationData != null && animationData.overrideRootMotion == true;
return (MaxEventsPerFrame + 1) + (animationData != null ? animationData.GetBoxesCount() : 0) + (hasRM ? 1 : 0);
}
}
|