SanAndreasUnity/Assets/Scripts/Behaviours/PedAI/PathMovementData.cs
2021-09-26 20:36:59 +02:00

21 lines
620 B
C#

using SanAndreasUnity.Importing.Paths;
using UnityEngine;
namespace SanAndreasUnity.Behaviours.Peds.AI
{
public class PathMovementData // don't change to struct, it would be large
{
public PathNode? currentNode;
public PathNode? destinationNode;
public Vector3 moveDestination;
public float timeWhenAttemptedToFindClosestNode = 0f;
public void Cleanup()
{
this.currentNode = null;
this.destinationNode = null;
this.moveDestination = Vector3.zero;
this.timeWhenAttemptedToFindClosestNode = 0f;
}
}
}