Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 private void SetSprite()
 {
     GetComponent <SpriteRenderer>().sprite = SpriteCreator.Create(texture, PIXELS_PER_UNIT);
 }