From 8d57a9bf9f4bef8e701e668dc5ee47905988b0df Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 28 十一月 2025 15:14:53 +0800
Subject: [PATCH] 125 战斗 复活技能
---
Main/System/Battle/Motion/MotionBase.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/Motion/MotionBase.cs b/Main/System/Battle/Motion/MotionBase.cs
index 9539668..46a2b4e 100644
--- a/Main/System/Battle/Motion/MotionBase.cs
+++ b/Main/System/Battle/Motion/MotionBase.cs
@@ -542,6 +542,8 @@
public void HaveRest()
{
+ animState?.ClearTracks();
+
trackEntryCallbacks.Clear();
runningActions.Clear();
activeSkillTracks.Clear();
@@ -555,6 +557,8 @@
subSkillTrackMap.Clear();
for (int i = 1; i <= 8; i++)
availableSubTracks.Enqueue(i);
+
+ currentTrack = null;
playingSkillAnim = false;
PlayAnimation(MotionName.idle, true);
@@ -574,4 +578,10 @@
illusionShadow.Show(isVisible, color);
}
}
+
+ internal void ResetToIdleAnimation()
+ {
+ // 娓呯┖涔嬪墠鐨勭姸鎬�
+ HaveRest();
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0