CreateNewGrid grid; //grid script call void Start() { grid = GetComponent <CreateNewGrid>(); }
//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>(); }