Moved from swarm to NavMesh - need to fix the enemy navigation! Review the animation controller to see if anything is being triggered.
This commit is contained in:
@@ -38,6 +38,8 @@ namespace Synty.AnimationBaseLocomotion.Samples.InputSystem
|
||||
public Action onSprintDeactivated;
|
||||
|
||||
public Action onWalkToggled;
|
||||
public Action onRepairActivated;
|
||||
public Action onRepairDeactivated;
|
||||
|
||||
/// <inheritdoc cref="OnEnable" />
|
||||
private void OnEnable()
|
||||
@@ -182,5 +184,18 @@ namespace Synty.AnimationBaseLocomotion.Samples.InputSystem
|
||||
onAttackPerformed?.Invoke();
|
||||
}
|
||||
|
||||
public void OnRepair(InputAction.CallbackContext context)
|
||||
{
|
||||
if (context.started)
|
||||
{
|
||||
// Broadcast to any script listening that the repair button was pressed
|
||||
onRepairActivated?.Invoke();
|
||||
}
|
||||
else if (context.canceled)
|
||||
{
|
||||
// Broadcast that the button was released
|
||||
onRepairDeactivated?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user