SanAndreasUnity/Assets/Scripts/Behaviours/PedAI/PathMovementData.cs

22 lines
620 B
C#
Raw Normal View History

2021-09-26 18:36:59 +00:00
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;
}
}
}