public SpriteGrid(int width, int height, Transform parent, GridNode[,] gridNodes) { this.width = width; this.height = height; this.parent = parent; this.gridNodes = gridNodes; spriteCreator = new SpriteCreator(width, height, parent); }
private void SetSprite() { GetComponent <SpriteRenderer>().sprite = SpriteCreator.Create(texture, PIXELS_PER_UNIT); }