From f2fd959ec5237bbee2fc2861f02ebf26b28f2bc0 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 10 十一月 2025 02:50:10 +0800
Subject: [PATCH] 216 【福利内容】每日签到
---
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