This commit is contained in:
Scove
2026-03-27 12:08:16 +07:00
parent 7b27ae51bc
commit d418535a7b
25 changed files with 565 additions and 537 deletions

View File

@@ -21,6 +21,7 @@ namespace OnlyScove.Scripts
public event Action OnInteractEvent; // E Key
public event Action OnNextInteractEvent; // R Key
public event Action OnPreviousInteractEvent; // Q Key
public event Action OnToggleViewEvent; // F2 - New event for toggling camera view
public void OnAttack(InputAction.CallbackContext context)
{
@@ -56,6 +57,15 @@ namespace OnlyScove.Scripts
if (context.canceled) IsSprintHeld = false;
}
// New method for ToggleView input
public void OnToggleView(InputAction.CallbackContext context)
{
if (context.performed)
{
OnToggleViewEvent?.Invoke();
}
}
public void OnJump(InputAction.CallbackContext context)
{
if (context.performed) OnJumpEvent?.Invoke();