basic car implementation

This commit is contained in:
MrTorex committed 2026-01-27 14:50:17 +03:00
1 parent 01ce057601
commit 1a6fa8c63c
49 files changed
+3654 -9

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ namespace Code.Input
public enum ActionMapping
{
MainMenu,
UI,
Gameplay
Gameplay,
UI
}
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace Code.Input
Vector2 LookInput { get; }
Vector2 MoveInput { get; }
bool SprintPressed { get; }
bool SwitchCameraPressed { get; }
void DebugBindAction(int mapId, int actionId, Action<InputAction.CallbackContext> action);
+6 -6
View File
@@ -12,7 +12,7 @@ namespace Code.Input
public Vector2 LookInput { get; private set; }
public Vector2 MoveInput { get; private set; }
public bool SprintPressed { get; private set; }
public bool SwitchCameraPressed { get; private set; }
public InputService(InputActionAsset inputActionAsset)
{
@@ -23,16 +23,16 @@ namespace Code.Input
private void SetupInputCallbacks()
{
SetupMainMenuInputCallbacks();
//SetupMovementInputCallbacks();
SetupGameplayInputCallbacks();
}
/*private void SetupMovementInputCallbacks()
private void SetupGameplayInputCallbacks()
{
var map = _inputActionAsset.actionMaps[(int)ActionMapping.Movement];
var map = _inputActionAsset.actionMaps[(int)ActionMapping.Gameplay];
BindVector2(map, "Look", v => LookInput = v);
BindVector2(map, "Move", v => MoveInput = v);
BindButton(map, "Sprint", v => SprintPressed = v);
}*/
BindButton(map, "SwitchCamera", v => SwitchCameraPressed = v);
}
private void SetupMainMenuInputCallbacks()
{