Files
CourierOld/Game/CourierOld/Assets/Code/Input/IInputService.cs
T

27 lines
916 B
C#

using System;
using UnityEngine;
using UnityEngine.InputSystem;
namespace Code.Input
{
public interface IInputService
{
void EnableMap(ActionMappings actionMap);
void DisableMap(ActionMappings actionMap);
// Для управления камерой
Vector2 LookInput { get; }
float ZoomInput { get; }
// Для управления движением персонажа
Vector2 MoveInput { get; }
bool JumpPressed { get; }
bool SlidePressed { get; }
bool DashPressed { get; }
// Для переключения режима камеры
bool ToggleCameraModePressed { get; }
void DebugBindAction(int mapId, int actionId, Action<InputAction.CallbackContext> action);
void DebugUnbindAction(int mapId, int actionId, Action<InputAction.CallbackContext> action);
}
}