Exemplo n.º 1
0
    public void CreateCharacterResponse(JSONNode response)
    {
        LoadingWindowUI.Instance.Leave(this);

        if (response["error"] != null)
        {
            WarningMessageUI.Instance.ShowMessage(response["error"].Value);
            AudioControl.Instance.Play("sound_negative");
        }
        else
        {
            LocalUserInfo.Me.SetCharacters(response["data"]);
            m_mainMenuUI.MoveToMenu(1);
            m_mainMenuUI.LoadPlayerCharacters(LocalUserInfo.Me);
            m_mainMenuUI.SelectLastCharacter(LocalUserInfo.Me);
            AudioControl.Instance.Play("sound_positiveprogress");
        }
    }