public void ContextTile(TileScript tile) { if (selectedSprite != null) { tile.AddImage(selectedSprite.GetComponent <Image>().sprite); } else { tile.ClearNested(); } }