Added sprint mechanic, unified options menu
This commit is contained in:
@@ -3,15 +3,15 @@ using UnityEngine;
|
||||
public static class ControlEvents
|
||||
{
|
||||
public static event System.Action<float, float> OnLookingInput;
|
||||
public static event System.Action<Vector3> OnMovingInput;
|
||||
public static event System.Action<Vector3, bool> OnMovingInput;
|
||||
|
||||
public static void Look(float pitch, float yaw)
|
||||
{
|
||||
OnLookingInput?.Invoke(pitch, yaw);
|
||||
}
|
||||
|
||||
public static void Move(Vector3 force)
|
||||
public static void Move(Vector3 force, bool isSprinting)
|
||||
{
|
||||
OnMovingInput?.Invoke(force);
|
||||
OnMovingInput?.Invoke(force, isSprinting);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user