//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;
     }
 }
Beispiel #2
0
 public void SetSize()
 {
     gridSize = jkg.GetSize();
 }