Anna Lise is working!

A lot of hardcoded stuff but Anna Lise is working
This commit is contained in:
2025-09-17 13:59:21 +02:00
parent 6a24330ea0
commit 8b3c9a09cb
7 changed files with 772 additions and 437 deletions

View File

@@ -1,6 +1,7 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
namespace Pathfinding {
using Pathfinding.RVO;
@@ -260,6 +261,12 @@ namespace Pathfinding {
reachedEndOfPath = false;
}
/// <summary>
/// Event triggered when the AI has reached its target.
/// Subscribe to this to get notified when the agent reaches its destination.
/// </summary>
public event Action OnTargetReachedEvent;
/// <summary>
/// The end of the path has been reached.
/// If you want custom logic for when the AI has reached it's destination add it here. You can
@@ -269,6 +276,7 @@ namespace Pathfinding {
/// So when the agent is close to the destination this method will typically be called every <see cref="repathRate"/> seconds.
/// </summary>
public virtual void OnTargetReached () {
OnTargetReachedEvent?.Invoke();
}
/// <summary>