Start implementation of diapason mechanics

This commit is contained in:
2026-01-28 18:26:21 +01:00
parent b64a57d810
commit bef8c6ef94
66 changed files with 10191 additions and 98 deletions
@@ -17,6 +17,7 @@ namespace Unheimlich.Managers
public Vector2 LookInput;
public InputActionReference JumpAction;
public InputActionReference InteractAction;
public InputActionReference DiapasonAction;
public static bool IsInputEnabled { get; private set; } = true;
public static bool IsLookingEnabled { get; private set; } = true;
@@ -24,6 +25,7 @@ namespace Unheimlich.Managers
private InputActionMap _playerActionMap;
private InputAction _lookAction;
private InputAction _interactAction;
private InputAction _diapasonAction;
private void Awake()
{
@@ -42,9 +44,12 @@ namespace Unheimlich.Managers
_playerActionMap = playerInput.actions.FindActionMap("Player");
_lookAction = _playerActionMap.FindAction("Look");
_interactAction = _playerActionMap.FindAction("Interact");
_diapasonAction = _playerActionMap.FindAction("Diapason");
JumpAction.action.Enable();
InteractAction.action.Enable();
if (DiapasonAction != null)
DiapasonAction.action.Enable();
}
/// <summary>
@@ -68,7 +73,9 @@ namespace Unheimlich.Managers
{
Instance._playerActionMap.Disable();
Instance._lookAction.Enable();
Instance._interactAction.Enable();
Instance._interactAction.Enable();
if (Instance._diapasonAction != null)
Instance._diapasonAction.Enable();
IsLookingEnabled = false;
}
}
@@ -89,6 +96,10 @@ namespace Unheimlich.Managers
public void OnInteract(InputAction.CallbackContext context)
{
}
}
public void OnDiapason(InputAction.CallbackContext context)
{
}
}
}