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

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