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:
2026-06-19 16:20:36 +01:00
parent 14371de4e6
commit e058a7984f
705 changed files with 2046326 additions and 219 deletions

View File

@@ -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();
}
}
}
}