public void endTurn() { ResistileMessage message = new ResistileMessage(GameHandler.gameHandler.gameID, ResistileMessageTypes.endTurn, ""); if (GameHandler.gameHandler.solderTile != null) //If solder was placed { TileData solderTile = GameHandler.gameHandler.solderTile.GetComponent <TileData>(); message.solderId = solderTile.tileID; message.message = ResistileServer.GameTileTypes.solder; } else { message.solderId = 0; } message.tileID = GameHandler.gameHandler.currentTile.GetComponent <TileData>().tileID; message.rotation = GameHandler.gameHandler.currentTile.GetComponent <TileData>().rotation; GameObject parent = GameHandler.gameHandler.currentTile.transform.parent.gameObject; message.coordinates = new ArrayList(BoardHandler.CoordinatesOf(parent)); NetworkManager.networkManager.sendMessage(message); GameHandler.gameHandler.currentTile.GetComponent <Draggable>().enabled = false; }