From ea3ad185fcbccce1bd49d467de7186ac08edab24 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 15 九月 2025 10:10:29 +0800
Subject: [PATCH] 0312 同步版本

---
 Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs b/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs
index a290c59..c5cd364 100644
--- a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs
+++ b/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs
@@ -7,6 +7,10 @@
     protected int skillId = 1;
     protected int hurtIndex = 0;
 
+    protected int effectId = 0;
+
+    protected BattleEffectPlayer effectPlayer;
+
     [MenuItem("Battle/TestSkillAction鐢熸垚鍣�")]
     public static void ShowWindow()
     {
@@ -19,6 +23,8 @@
 
         skillId = EditorGUILayout.IntField("Skill ID", skillId);
         hurtIndex = EditorGUILayout.IntField("Hurt Index", hurtIndex);
+        effectId = EditorGUILayout.IntField("Effect ID", effectId);
+
 
         if (GUILayout.Button("鐢熸垚骞舵挱鏀� TestSkillAction"))
         {
@@ -29,6 +35,41 @@
         {
             ResetRecordPlayer();
         }
+
+        if (GUILayout.Button("灞曠ず鐗规晥"))
+        {
+            
+        }
+    }
+
+    protected void ShowEffect()
+    {
+        if (effectId <= 0)
+        {
+            Debug.LogWarning("Effect ID 蹇呴』澶т簬0");
+            return;
+        }
+
+        if (EffectConfig.Get(effectId) == null)
+        {
+            Debug.LogWarning($"Effect ID {effectId} 鍦ㄩ厤缃〃涓笉瀛樺湪");
+            return;
+        }
+
+        HomeWin homeWin = UIManager.Instance.GetUI<HomeWin>();
+
+        effectPlayer = BattleEffectPlayer.Create(effectId, homeWin.transform, true);
+        effectPlayer.Play();
+    }
+
+    protected void DestroyEffect()
+    {
+        if (effectPlayer != null)
+        {
+            effectPlayer.Stop();
+            GameObject.DestroyImmediate(effectPlayer.gameObject);
+            effectPlayer = null;
+        }
     }
 
     private void PlayTestSkillAction()

--
Gitblit v1.8.0