Ejemplo n.º 1
0
    CreateNewGrid grid;                                          //grid script call

    void Start()
    {
        grid = GetComponent <CreateNewGrid>();
    }
Ejemplo n.º 2
0
 //awake is done before any calls this is just so we know
 //things get instatiatiated before anything else
 void Awake()
 {
     gridScript = obj.GetComponent <CreateNewGrid>();
     path       = obj.GetComponent <AStar>();
 }