Example #1
0
    public void DeleteCharacterResponse(JSONNode response)
    {
        LoadingWindowUI.Instance.Leave(this);

        if (response["error"] != null)
        {
            WarningMessageUI.Instance.ShowMessage(response["error"].Value);
        }
        else
        {
            OnLeaveCharacterInfoPage();
            LocalUserInfo.Me.SetCharacters(response["data"]);
            m_CharacterSelectionPageMenu.SwitchTo(0);
            m_mainMenuUI.LoadPlayerCharacters(LocalUserInfo.Me);
        }
    }
Example #2
0
 public void ShowCharacterInfo(ActorInfo info)
 {
     PlayerPrefs.SetString(MainMenuUI.LAST_LOGGED_IN_CHAR_ID_PREF_KEY, info.ID);
     m_CharacterSelectionPageMenu.SwitchTo(1);
     m_CharacterInfoUI.SetInfo(info);
 }
Example #3
0
 public void MoveToMenu(int index)
 {
     m_PageMenu.SwitchTo(index);
 }