技能修复

This commit is contained in:
daixiawu 2025-06-25 15:31:48 +08:00
parent a99a417302
commit a678efba0f
2 changed files with 14 additions and 2 deletions

View File

@ -15,6 +15,12 @@ namespace Logic.Skill
[Serializable]
public class DashSkill : SkillBase
{
public bool IsTrigger = false;
public override void OnTurnStart(UnitData self, MapData mapData)
{
IsTrigger = false;
}
public DashSkill()
{
IsPermanent = true;
@ -29,9 +35,15 @@ namespace Logic.Skill
public override void OnMove(UnitData self, GridData grid, MapData mapData, MoveType moveType)
{
if (IsTrigger) return;
base.OnMove(self, grid, mapData,moveType);
if(moveType == MoveType.ActiveMove)
if (moveType == MoveType.ActiveMove)
{
self.AP = 1;
IsTrigger = true;
}
}
}
}

View File

@ -26,7 +26,7 @@ public class CameraController : MonoBehaviour
private Vector3? _smoothTargetPosition = null; //记录相机平滑移动的起点
private Vector3 _startPos;
private float _moveProgress = 0f;
private float _moveDuration = 0.5f; // 可调节移动总时长
private float _moveDuration = 0.4f; // 可调节移动总时长
private bool _isMoving = false;