示例#1
0
 void Awake()
 {
     instance    = this;
     pathfinding = GetComponent <PathfindingBFS>();
 }
示例#2
0
 void Start()
 {
     PathFindingRequestBFS.RequestPath(transform.position, target.position, OnPathFound);
 }
示例#3
0
 void Awake()
 {
     requestManager = GetComponent <PathFindingRequestBFS>();
     grid           = GetComponent <Grid> ();
 }