basic car implementation
This commit is contained in:
1 parent
01ce057601
commit
1a6fa8c63c
49 files changed
+3654
-9
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user