// Use this for initialization
 void Start()
 {
     _nodeGraph = new List<Node>();
     _agents.AddRange(FindObjectsOfType<Agent>());
     PathFinder = GetComponent<PathFinder>();
     StartCoroutine(PerformUpdate());
 }
Beispiel #2
0
 public abstract List<Node> PropagateSense(PathFinder pathFinder, Vector3 startPosition, Vector3 endPosition);
Beispiel #3
0
        public override List<Node> PropagateSense(PathFinder pathFinder, Vector3 startPosition, Vector3 endPosition)
        {
            var list = pathFinder.CalculateSensingPath(startPosition, endPosition);

            return list;
        }
Beispiel #4
0
 public override List<Node> PropagateSense(PathFinder pathFinder, Vector3 startPosition, Vector3 endPosition)
 {
     throw new NotImplementedException();
 }