Fix player height
This commit is contained in:
@@ -71,8 +71,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
private bool HealthTimerIsActive = false;
|
||||
#endregion
|
||||
|
||||
public event Action PointUpFinished;
|
||||
|
||||
#region Node Dependencies
|
||||
[Node] private IAnimationPlayer AnimationPlayer { get; set; } = default!;
|
||||
|
||||
@@ -94,7 +92,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
|
||||
[Node] private ShakeCamera _camera3D { get; set; } = default!;
|
||||
|
||||
[Node] private AnimationPlayer CameraAnimations { get; set; } = default!;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -129,8 +126,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
|
||||
_itemReroller = new ItemReroller(ItemDatabase.Instance);
|
||||
|
||||
CameraAnimations.AnimationFinished += CameraAnimations_AnimationFinished;
|
||||
|
||||
Settings = new PlayerLogic.Settings() { RotationSpeed = RotationSpeed, MoveSpeed = MoveSpeed, Acceleration = Acceleration };
|
||||
|
||||
PlayerBinding = PlayerLogic.Bind();
|
||||
@@ -194,8 +189,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
SetHealthTimerStatus(false);
|
||||
}
|
||||
|
||||
public void LookUp() => CameraAnimations.Play("look_up");
|
||||
|
||||
public void SetHealthTimerStatus(bool isActive)
|
||||
{
|
||||
if (isActive)
|
||||
@@ -242,11 +235,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
SetPhysicsProcess(false);
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
CameraAnimations.Play("RESET");
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (@event.IsActionPressed(GameInputs.Attack))
|
||||
@@ -291,11 +279,6 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
EquipmentComponent.Unequip(equipable);
|
||||
}
|
||||
|
||||
private void CameraAnimations_AnimationFinished(StringName animName)
|
||||
{
|
||||
PointUpFinished?.Invoke();
|
||||
}
|
||||
|
||||
private static Vector3 GlobalInputVector
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user