/// <summary>
        /// 角色选择-确认
        /// </summary>
        public void OnCharSelectorConfirm()
        {
            if (m_CurrentGame == null)
            {
                m_CurrentGame = new SurvivalGame(m_battleLevel);
                m_CurrentGame.Initialize();

                // 确认好角色后, 关掉当前 UI
                if (m_Form != null)
                {
                    m_Form.Close();
                }

                GameEntry.UI.OpenUIForm(UIFormId.BattleForm, this);
            }
        }
示例#2
0
 private void CloseForm(bool isShutdown = false)
 {
     if (m_Form != null)
     {
         m_Form.Close(isShutdown);
         m_Form = null;
     }
 }