奔跑功能
This commit is contained in:
@@ -11,7 +11,6 @@ namespace NBF
|
||||
public static bool IsOp1;
|
||||
public static bool IsOp2;
|
||||
|
||||
public static bool IsRunning;
|
||||
|
||||
public static event Action<bool> OnOp1Action;
|
||||
public static event Action<bool> OnOp2Action;
|
||||
@@ -96,6 +95,10 @@ namespace NBF
|
||||
/// </summary>
|
||||
public static event Action<bool> OnMapAction;
|
||||
|
||||
/// <summary>
|
||||
/// 奔跑
|
||||
/// </summary>
|
||||
public static event Action<bool> OnRunAction;
|
||||
|
||||
public static PlayerInputControl PlayerInputControl { get; private set; }
|
||||
|
||||
@@ -270,7 +273,7 @@ namespace NBF
|
||||
|
||||
private void OnRun(InputAction.CallbackContext context)
|
||||
{
|
||||
IsRunning = context.performed;
|
||||
OnRunAction?.Invoke(context.performed);
|
||||
}
|
||||
|
||||
private void OnOp1(InputAction.CallbackContext context)
|
||||
|
||||
Reference in New Issue
Block a user