private void RoyalRumbleScoreSubmitedCallback(UnityWebRequest response) { MatchEntryResponse matchEntryResponse = new MatchEntryResponse(); matchEntryResponse = JsonUtility.FromJson <MatchEntryResponse>(response.downloadHandler.text); if (matchEntryResponse.isSuccessful || matchEntryResponse.successful) { Debug.Log("this is the successful message: " + matchEntryResponse.message); } else { Debug.Log("this is the error message: " + matchEntryResponse.message); } }
private void createRoyalRumbleMatchCallback(UnityWebRequest response) { MatchEntryResponse matchEntryResponse = new MatchEntryResponse(); matchEntryResponse = JsonUtility.FromJson <MatchEntryResponse>(response.downloadHandler.text); if (matchEntryResponse.isSuccessful || matchEntryResponse.successful) { displayTournaments(); Debug.Log("this is the successful message: " + matchEntryResponse.message); } else { Debug.Log("this is the error message: " + matchEntryResponse.message); } }