LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/AISearchRoutine.cs

42 lines
802 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class AISearchRoutine
{
public List<GameObject> unsearchedNodes = new List<GameObject>();
public GameObject currentTargetNode;
public GameObject nextTargetNode;
public bool waitingForTargetNode;
public bool choseTargetNode;
public Vector3 currentSearchStartPosition;
public bool loopSearch = true;
public int timesFinishingSearch;
public int nodesEliminatedInCurrentSearch;
public bool inProgress;
public bool calculatingNodeInSearch;
[Space(5f)]
public float searchWidth = 200f;
public float searchPrecision = 5f;
public bool randomized;
public float GetCurrentDistanceOfSearch()
{
return Vector3.Distance(currentSearchStartPosition, currentTargetNode.transform.position);
}
}