mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-02 22:31:10 +00:00
feat: add attack input
This commit is contained in:
@@ -7,6 +7,7 @@ namespace _Project.Develop.Runtime.Utils.InputManagement
|
|||||||
{
|
{
|
||||||
InputState<Vector2> Move { get; }
|
InputState<Vector2> Move { get; }
|
||||||
InputState<Vector2> Look { get; }
|
InputState<Vector2> Look { get; }
|
||||||
|
InputState<float> Attack { get; }
|
||||||
InputState<float> Jump { get; }
|
InputState<float> Jump { get; }
|
||||||
InputState<float> Sprint { get; }
|
InputState<float> Sprint { get; }
|
||||||
InputState<float> Interact { get; }
|
InputState<float> Interact { get; }
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ namespace _Project.Develop.Runtime.Utils.InputManagement.Inputs
|
|||||||
{
|
{
|
||||||
public InputState<Vector2> Move { get; }
|
public InputState<Vector2> Move { get; }
|
||||||
public InputState<Vector2> Look { get; }
|
public InputState<Vector2> Look { get; }
|
||||||
|
public InputState<float> Attack { get; }
|
||||||
public InputState<float> Jump { get; }
|
public InputState<float> Jump { get; }
|
||||||
public InputState<float> Sprint { get; }
|
public InputState<float> Sprint { get; }
|
||||||
public InputState<float> Interact { get; }
|
public InputState<float> Interact { get; }
|
||||||
@@ -23,6 +24,7 @@ namespace _Project.Develop.Runtime.Utils.InputManagement.Inputs
|
|||||||
Move = Register<Vector2>(_playerActions.Move);
|
Move = Register<Vector2>(_playerActions.Move);
|
||||||
Look = Register<Vector2>(_playerActions.Look);
|
Look = Register<Vector2>(_playerActions.Look);
|
||||||
Jump = Register<float>(_playerActions.Jump);
|
Jump = Register<float>(_playerActions.Jump);
|
||||||
|
Attack = Register<float>(_playerActions.Attack);
|
||||||
Sprint = Register<float>(_playerActions.Sprint);
|
Sprint = Register<float>(_playerActions.Sprint);
|
||||||
Interact = Register<float>(_playerActions.Interact);
|
Interact = Register<float>(_playerActions.Interact);
|
||||||
Crouch = Register<float>(_playerActions.Crouch);
|
Crouch = Register<float>(_playerActions.Crouch);
|
||||||
|
|||||||
Reference in New Issue
Block a user