Controlevents are now working
This commit is contained in:
17
Assets/Scripts/Events/ControlEvents.cs
Normal file
17
Assets/Scripts/Events/ControlEvents.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Events/ControlEvents.cs.meta
Normal file
2
Assets/Scripts/Events/ControlEvents.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6f57f29eb0f62ddcbeda3faf4517459
|
||||
Reference in New Issue
Block a user