Example #1
0
    void AddTileToScene(Vector2 createPosition, RoomGrid rg)
    {
        GameObject metaTile = (GameObject)Instantiate(currentTabList[tileSelectedID]);

        metaTile.transform.position = createPosition;
        rg.AddReferenceToBlock(metaTile, selectedItemTab);
    }