Пример #1
0
 void  Awake()
 {
     requestManager = GetComponent <PathRequestmanager>();
     grid           = GetComponent <Grid>();
 }
 void Start()
 {
     PathRequestmanager.RequestPath(transform.position, target.position, OnPathDiscover);
 }
 public void StartPathing(Vector3 target)
 {
     PathRequestmanager.RequestPath(transform.position, target, OnPathDiscover);
 }
Пример #4
0
 void Awake()
 {
     instance    = this;
     pathFinding = GetComponent <PathFinding>();
 }