fixed mantle after dash bug
This commit is contained in:
@@ -218,22 +218,4 @@ public partial class MoveSystem : Node3D
|
||||
var jumpVelocity = jumpForce * effectiveJumpDirection * boost;
|
||||
_parent.Velocity = currentHorizontalVelocity + jumpVelocity;
|
||||
}
|
||||
|
||||
public bool CanMantle()
|
||||
{
|
||||
var mantleLocationResult = _mantleSystem.FindMantleInFrontOfPlayer();
|
||||
return mantleLocationResult.IsSome(out _);
|
||||
}
|
||||
|
||||
public Option<Tween> Mantle()
|
||||
{
|
||||
var mantleLocationResult = _mantleSystem.FindMantleInFrontOfPlayer();
|
||||
if (mantleLocationResult.IsSome(out var mantleLocation))
|
||||
{
|
||||
var duration = 0.1f * mantleLocation.DistanceTo(_parent.Position);
|
||||
var tween = _tweenQueueSystem.TweenToLocation(new TweenQueueSystem.TweenInputs(mantleLocation, duration));
|
||||
return tween.Some();
|
||||
}
|
||||
return Option<Tween>.None;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user