public void GameObjectsToString() { string text = ""; foreach (GameObject tile in allObjects) { text += tile.tag.ToString(); text += "-"; text += tile.transform.position.ToString(); text += "; "; } codeText.text = StringProvider.Encode(text); }