//TODO: Fix backdrop creation (NECESSARY) void CreateBackdrop() { if (!backdropObj) { backdropObj = new GameObject("RoomBackdrop"); SpriteRenderer rp = backdropObj.AddComponent <SpriteRenderer>(); rp.sprite = imgSprite; backdropObj.transform.parent = gameObject.transform; rp.size = new Vector2(grid.GetSize(), grid.GetSize()); rp.sortingOrder = -1; } }
public void SetSize() { gridSize = jkg.GetSize(); }