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); } }
/// <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); } } }