17 lines
390 B
C#
17 lines
390 B
C#
using UnityEngine;
|
|
|
|
public static class ControlEvents
|
|
{
|
|
public static event System.Action<float, float> OnLookingInput;
|
|
public static event System.Action<Vector3> OnMovingInput;
|
|
|
|
public static void Look(float pitch, float yaw)
|
|
{
|
|
OnLookingInput?.Invoke(pitch, yaw);
|
|
}
|
|
|
|
public static void Move(Vector3 force)
|
|
{
|
|
OnMovingInput?.Invoke(force);
|
|
}
|
|
} |