技能修复
This commit is contained in:
parent
a99a417302
commit
a678efba0f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user