From 2bb96c84dc1003a17526df2ef6aac3c0a285d5dd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 12 九月 2025 09:12:01 +0800
Subject: [PATCH] 125 【战斗】战斗系统 移动速度 & 子弹速度支持(去除原本使用时间的设定)

---
 Main/System/Battle/Skill/SkillBase.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Main/System/Battle/Skill/SkillBase.cs b/Main/System/Battle/Skill/SkillBase.cs
index f5a834c..f51ffe4 100644
--- a/Main/System/Battle/Skill/SkillBase.cs
+++ b/Main/System/Battle/Skill/SkillBase.cs
@@ -151,7 +151,7 @@
 		// battleField.battleTweenMgr.OnPlayTween(tweener);
 	}
 
-	protected void MoveToTarget(RectTransform target, Vector2 offset, float duration, Action onComplete = null)
+	protected void MoveToTarget(RectTransform target, Vector2 offset, Action onComplete = null)
 	{
 		//	鍘熷湴閲婃斁
 		if (skillConfig.CastDistance >= 9999)
@@ -161,7 +161,7 @@
 		}
 
 		caster.motionBase.PlayAnimation(MotionName.run, true);
-		var tweener = BattleUtility.MoveToTarget(caster.heroRectTrans, target, offset, duration, () =>
+		var tweener = BattleUtility.MoveToTarget(caster.heroRectTrans, target, offset, () =>
 		{
 			caster.motionBase.PlayAnimation(MotionName.idle, true);
 			onComplete?.Invoke();
@@ -186,7 +186,7 @@
 
 		RectTransform target = battleField.GetTeamNode(caster.GetEnemyCamp(), skillConfig);
 
-		MoveToTarget(target, new Vector2(skillConfig.CastDistance, 0), moveTime, () =>
+		MoveToTarget(target, new Vector2(skillConfig.CastDistance, 0), () =>
 		{
 			//	鍒颁綅缃浆韬�(涓嶄竴瀹氶潪瑕佽浆韬� 浣嗘槸娴佺▼瑕佸啓)
 			TurnBack(() =>
@@ -198,7 +198,7 @@
 						() =>
 						{
 							//	鍥炲埌鍘熸潵鐨勪綅缃�
-							MoveToTarget(battleField.GetTeamNode(caster.Camp, caster.teamHero.positionNum), Vector2.zero, moveTime, 
+							MoveToTarget(battleField.GetTeamNode(caster.Camp, caster.teamHero.positionNum), Vector2.zero, 
 								OnAttackFinish);
 						}
 					, -1f);
@@ -225,7 +225,7 @@
 
 		RectTransform targetTrans = battleField.GetTeamNode(battleCamp, mainTargetPosNum);
 
-		MoveToTarget(targetTrans, new Vector2(skillConfig.CastDistance, 0), moveTime, () =>
+		MoveToTarget(targetTrans, new Vector2(skillConfig.CastDistance, 0), () =>
 		{
 			//	鍒颁綅缃浆韬�(涓嶄竴瀹氶潪瑕佽浆韬� 浣嗘槸娴佺▼瑕佸啓)
 			TurnBack(() =>
@@ -237,7 +237,7 @@
 						() =>
 						{
 							//	鍥炲埌鍘熸潵鐨勪綅缃�
-							MoveToTarget(battleField.GetTeamNode(caster.Camp, caster.teamHero.positionNum), Vector2.zero, moveTime, 
+							MoveToTarget(battleField.GetTeamNode(caster.Camp, caster.teamHero.positionNum), Vector2.zero, 
 								OnAttackFinish);
 						}
 					, -1f);
@@ -255,7 +255,7 @@
 	{
 		RectTransform target = battleField.GetTeamNode(caster.Camp, skillConfig);
 
-		MoveToTarget(target, new Vector2(skillConfig.CastDistance, 0), moveTime, () =>
+		MoveToTarget(target, new Vector2(skillConfig.CastDistance, 0), () =>
 		{
 			//	鍒颁綅缃浆韬�(涓嶄竴瀹氶潪瑕佽浆韬� 浣嗘槸娴佺▼瑕佸啓)
 			TurnBack(() =>
@@ -268,7 +268,7 @@
 						{
 							//	鍥炲埌鍘熸潵鐨勪綅缃�
 							MoveToTarget(battleField.GetTeamNode(caster.Camp, caster.teamHero.positionNum),
-								Vector2.zero, moveTime, OnAttackFinish);
+								Vector2.zero, OnAttackFinish);
 						}
 					, -1f);
 				});

--
Gitblit v1.8.0