Exemplo n.º 1
0
 void Awake()
 {
     pathRequestManager = GetComponent <PathRequestManager> ();
     grid = GameObject.Find("A*").GetComponent <Grid> ();
     cM   = GetComponent <createMesh> ();
     //planet = gameObject.transform;
 }
Exemplo n.º 2
0
 void Start()
 {
     cM   = GetComponent <createMesh> ();
     grid = createMesh.grid;         //
     StartCoroutine(checkCollision());
 }