/// <summary> /// Generate the grid using the GridData attached to this gameobject will return the grid as a 2d array of tiles /// </summary> public AbstractTile[,] GenerateGrid() { GridData data = GetComponent <GridData>(); return(data ? GenerateGrid(data, data.CachedTransform) : new AbstractTile[0, 0]); }
private void Awake() { data = GetComponent <GridData>(); gridCreator = GetComponent <GridCreator>(); }