Passion & UI
This commit is contained in:
@@ -19,6 +19,7 @@ namespace Cielonos.MainGame.Characters
|
||||
public partial class PlayerOperationSubcontroller
|
||||
{
|
||||
public event Action OnInteract;
|
||||
public event Action<int> OnNavigateInteractionChoice;
|
||||
|
||||
public event Action<Vector3, float> OnDash;
|
||||
public event Action<float> OnDodge;
|
||||
@@ -67,6 +68,8 @@ namespace Cielonos.MainGame.Characters
|
||||
{
|
||||
public void Interact() => OnInteract?.Invoke();
|
||||
|
||||
public void NavigateInteractionChoice(int delta) => OnNavigateInteractionChoice?.Invoke(delta);
|
||||
|
||||
public void Dash(Vector3 direction, float length = -1) => OnDash?.Invoke(direction, length);
|
||||
|
||||
public void Dodge(float length = -1) => OnDodge?.Invoke(length);
|
||||
|
||||
Reference in New Issue
Block a user