Ejemplo n.º 1
0
 public void Start()
 {
     if (target != null && target != lastTarget)
     {
         StackRequestV2.RequestPath(new PathRequest(transform.position, target.position, OnPathFound));
         lastTarget = target;
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     instance    = this;
     pathfinding = GetComponent <AStarAlgoV2>();
 }