Anna Lise is working!
A lot of hardcoded stuff but Anna Lise is working
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user