Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
    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);
        }
    }