Add weapon database and equipment component resources with associated services
This commit is contained in:
@@ -14,6 +14,8 @@ public class GodotInputService : IInputService
|
||||
public bool IsJumping { get; private set; }
|
||||
public GameCoreMath MoveDirection { get; private set; }
|
||||
public GameCoreMath LookDirection { get; private set; }
|
||||
public bool IsSwapWeaponNext { get; private set; }
|
||||
public bool IsSwapWeaponPrevious { get; private set; }
|
||||
|
||||
public void HandleInputEvent(InputEvent e)
|
||||
{
|
||||
@@ -38,10 +40,15 @@ public class GodotInputService : IInputService
|
||||
IsJumping = Input.IsActionJustPressed("jump");
|
||||
IsFiring = Input.IsActionPressed("fire");
|
||||
IsInteracting = Input.IsActionPressed("interact");
|
||||
IsSwapWeaponNext = Input.IsActionJustPressed("swap_weapon_next");
|
||||
IsSwapWeaponPrevious = Input.IsActionJustPressed("swap_weapon_previous");
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
{
|
||||
LookDirection = GameCoreMath.Zero;
|
||||
|
||||
IsSwapWeaponNext = false;
|
||||
IsSwapWeaponPrevious = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user