From 0e274934cbdd786c9ca0190a996c19c77782ff71 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 27 十一月 2025 18:53:41 +0800
Subject: [PATCH] remove old test code

---
 /dev/null |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs b/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs
deleted file mode 100644
index 3865e64..0000000
--- a/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs
+++ /dev/null
@@ -1,133 +0,0 @@
-#if UNITY_EDITOR
-using UnityEditor;
-using UnityEngine;
-using UnityEngine.UI;
-
-public class TestActionEditorWindow : EditorWindow
-{
-    protected int targetIndex = 0;
-    protected int selfIndex = 0;
-    protected int distance = 100;
-    protected float duration = 2f;
-
-    [MenuItem("Battle/TestAction鐢熸垚鍣�")]
-    public static void ShowWindow()
-    {
-        GetWindow<TestActionEditorWindow>("TestAction鐢熸垚鍣�");
-    }
-
-    private void OnGUI()
-    {
-        GUILayout.Label("TestAction鍙傛暟璁剧疆", EditorStyles.boldLabel);
-
-        targetIndex = EditorGUILayout.IntField("Target Index", targetIndex);
-        selfIndex = EditorGUILayout.IntField("Self Index", selfIndex);
-        distance = EditorGUILayout.IntField("Distance", distance);
-        duration = EditorGUILayout.FloatField("Duration", duration);
-
-        if (GUILayout.Button("鐢熸垚骞舵挱鏀� TestAction"))
-        {
-            PlayTestAction();
-        }
-
-        if (GUILayout.Button("鏍囪璧风偣鍜岀粓鐐�"))
-        {
-            MarkStartAndEnd();
-        }
-
-        if (GUILayout.Button("澶嶄綅RecordPlayer"))
-        {
-            ResetRecordPlayer();
-        }
-    }
-
-    private void PlayTestAction()
-    {
-        // 杩愯鏃舵墠鎵ц
-        if (!Application.isPlaying)
-        {
-            Debug.LogWarning("璇峰湪杩愯鏃朵娇鐢ㄨ鍔熻兘锛�");
-            return;
-        }
-
-        var battleField = BattleManager.Instance.storyBattleField;
-        if (battleField == null || battleField.recordPlayer == null)
-        {
-            Debug.LogError("BattleManager.storyBattleField 鎴� recordPlayer 鏈垵濮嬪寲锛�");
-            return;
-        }
-
-        var action = new TestAction(battleField, targetIndex, selfIndex, distance, duration);
-        battleField.recordPlayer.PlayRecord(action);
-        Debug.Log($"宸茬敓鎴愬苟鎾斁 TestAction: targetIndex={targetIndex}, selfIndex={selfIndex}, distance={distance}, duration={duration}");
-    }
-
-    private void MarkStartAndEnd()
-    {
-        // 杩愯鏃舵墠鎵ц
-        if (!Application.isPlaying)
-        {
-            Debug.LogWarning("璇峰湪杩愯鏃朵娇鐢ㄨ鍔熻兘锛�");
-            return;
-        }
-
-        var battleField = BattleManager.Instance.storyBattleField;
-        if (battleField == null)
-        {
-            Debug.LogError("BattleManager.storyBattleField 鏈垵濮嬪寲锛�");
-            return;
-        }
-
-        // 鑾峰彇鑺傜偣
-        RectTransform startNode = battleField.GetTeamNode(BattleCamp.Red, selfIndex);
-        RectTransform endNode = battleField.GetTeamNode(BattleCamp.Blue, targetIndex);
-
-        BattleWin battleWin = UIManager.Instance.GetUI<BattleWin>();
-        RectTransform canvasRect = battleWin.transform as RectTransform;
-
-        CreateMarker(canvasRect, startNode, "StartMarker");
-        CreateMarker(canvasRect, endNode, "EndMarker");
-    }
-
-    private void CreateMarker(RectTransform canvasRect, RectTransform targetNode, string markerName)
-    {
-        // 鑾峰彇鐩爣鑺傜偣鐨勪笘鐣屽潗鏍囷紙涓績鐐癸級
-        Vector3 worldPos = targetNode.TransformPoint(targetNode.rect.center);
-
-        // 杞崲鍒癈anvas鏈湴鍧愭爣
-        Vector2 localPoint;
-        RectTransformUtility.ScreenPointToLocalPointInRectangle(
-            canvasRect,
-            RectTransformUtility.WorldToScreenPoint(null, worldPos),
-            null,
-            out localPoint);
-
-        // 鍒涘缓RawImage
-        GameObject marker = new GameObject(markerName, typeof(RawImage));
-        marker.transform.SetParent(canvasRect, false);
-        var rawImage = marker.GetComponent<RawImage>();
-        rawImage.color = Color.white;
-        rawImage.rectTransform.sizeDelta = new Vector2(100, 100);
-        rawImage.rectTransform.anchoredPosition = localPoint;
-    }
-
-    private void ResetRecordPlayer()
-    {
-        if (!Application.isPlaying)
-        {
-            Debug.LogWarning("璇峰湪杩愯鏃朵娇鐢ㄨ鍔熻兘锛�");
-            return;
-        }
-
-        var battleField = BattleManager.Instance.storyBattleField;
-        if (battleField == null || battleField.recordPlayer == null)
-        {
-            Debug.LogError("BattleManager.storyBattleField 鎴� recordPlayer 鏈垵濮嬪寲锛�");
-            return;
-        }
-
-        battleField.recordPlayer.HaveRest();
-        Debug.Log("RecordPlayer宸插浣嶏紒");
-    }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs.meta b/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs.meta
deleted file mode 100644
index 27e944a..0000000
--- a/Assets/Editor/ScriptEditor/TestActionEditorWindow.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ec550ea40001db4439cc23b8e873defd
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 
diff --git a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs b/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs
deleted file mode 100644
index c5cd364..0000000
--- a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-#if UNITY_EDITOR
-using UnityEditor;
-using UnityEngine;
-
-public class TestSkillActionEditorWindow : EditorWindow
-{
-    protected int skillId = 1;
-    protected int hurtIndex = 0;
-
-    protected int effectId = 0;
-
-    protected BattleEffectPlayer effectPlayer;
-
-    [MenuItem("Battle/TestSkillAction鐢熸垚鍣�")]
-    public static void ShowWindow()
-    {
-        GetWindow<TestSkillActionEditorWindow>("TestSkillAction鐢熸垚鍣�");
-    }
-
-    private void OnGUI()
-    {
-        GUILayout.Label("TestSkillAction鍙傛暟璁剧疆", EditorStyles.boldLabel);
-
-        skillId = EditorGUILayout.IntField("Skill ID", skillId);
-        hurtIndex = EditorGUILayout.IntField("Hurt Index", hurtIndex);
-        effectId = EditorGUILayout.IntField("Effect ID", effectId);
-
-
-        if (GUILayout.Button("鐢熸垚骞舵挱鏀� TestSkillAction"))
-        {
-            PlayTestSkillAction();
-        }
-
-        if (GUILayout.Button("澶嶄綅RecordPlayer"))
-        {
-            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()
-    {
-        if (!Application.isPlaying)
-        {
-            Debug.LogWarning("璇峰湪杩愯鏃朵娇鐢ㄨ鍔熻兘锛�");
-            return;
-        }
-
-        var battleField = BattleManager.Instance.storyBattleField;
-        if (battleField == null || battleField.recordPlayer == null)
-        {
-            Debug.LogError("BattleManager.storyBattleField 鎴� recordPlayer 鏈垵濮嬪寲锛�");
-            return;
-        }
-
-        var action = new TestSkillAction(battleField, skillId, hurtIndex);
-        battleField.recordPlayer.PlayRecord(action);
-        Debug.Log($"宸茬敓鎴愬苟鎾斁 TestSkillAction: skillId={skillId}, hurtIndex={hurtIndex}");
-    }
-
-    private void ResetRecordPlayer()
-    {
-        if (!Application.isPlaying)
-        {
-            Debug.LogWarning("璇峰湪杩愯鏃朵娇鐢ㄨ鍔熻兘锛�");
-            return;
-        }
-
-        var battleField = BattleManager.Instance.storyBattleField;
-        if (battleField == null || battleField.recordPlayer == null)
-        {
-            Debug.LogError("BattleManager.storyBattleField 鎴� recordPlayer 鏈垵濮嬪寲锛�");
-            return;
-        }
-
-        battleField.recordPlayer.HaveRest();
-        Debug.Log("RecordPlayer宸插浣嶏紒");
-    }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs.meta b/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs.meta
deleted file mode 100644
index 75cebc7..0000000
--- a/Assets/Editor/ScriptEditor/TestSkillActionEditorWindow.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4e1ba39e4d98a0740930d1303fe8c1d6
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

--
Gitblit v1.8.0