Basic projectile implementation (put sample version in FilthEaterModelView)
This commit is contained in:
@@ -88,4 +88,11 @@ public partial class PatrolBehavior : Node3D, IBehavior
|
||||
}
|
||||
|
||||
private void PatrolTimer_Timeout() => SetPatrolTarget();
|
||||
|
||||
public void OnExitTree()
|
||||
{
|
||||
_patrolTimer.Stop();
|
||||
_patrolTimer.Timeout -= PatrolTimer_Timeout;
|
||||
_navigationAgent.WaypointReached -= NavigationAgent_WaypointReached;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user