void AddTileToScene(Vector2 createPosition, RoomGrid rg) { GameObject metaTile = (GameObject)Instantiate(currentTabList[tileSelectedID]); metaTile.transform.position = createPosition; rg.AddReferenceToBlock(metaTile, selectedItemTab); }
void AddTileToScene(Vector2 createPosition, RoomGrid rg) { GameObject metaTile = (GameObject)Instantiate(currentTabList[tileSelectedID]); metaTile.transform.position = createPosition; rg.AddReferenceToBlock(metaTile, selectedItemTab); }