Пример #1
0
    public override void OnRefresh(object msg)
    {
        UIManager.Instance.OpenPanel(UIPanel.CharacterModelPanel, m_PanelRoot);
        ServerInfoVO serverInfo = m_ServerListProxy.GetLastLoginServer();

        if (serverInfo.CharacterList?.Count > 0)
        {
            m_ServerListProxy.SetCurrentState(CharacterPanelState.RoleList);
        }
        else
        {
            m_ServerListProxy.SetCurrentState(CharacterPanelState.CreatRole);
        }
    }
Пример #2
0
 /// <summary>
 /// back 键按下 返回上级选择
 /// </summary>
 /// <param name="callbackContext"></param>
 private void BackOnClick(HotkeyCallback callbackContext)
 {
     if (callbackContext.performed)
     {
         if (m_IsOpenName)
         {
             CloseNamePanel();
         }
         else
         {
             UIManager.Instance.ClosePanel(this);
             m_ServerListProxy.SetCurrentState(CharacterPanelState.RoleList);
         }
     }
 }