void JoinCombat() { MainCameraM.s_Instance.EnableDrag(true); WndManager.DestoryDialog <SelectSoldierwnd>(); CombatInfoWnd wndInfo = WndManager.GetDialog <CombatInfoWnd>(); if (wndInfo != null) { wndInfo.SetWndMode(CombatInfoMode.combat); } CombatWnd wnd = WndManager.GetDialog <CombatWnd>(); if (wnd != null) { wnd.InitSoldierUI(); } if (m_SelectedBlackScienceCaptainID != 0) //黑科技设置 { CmCarbon.AddGodSkill(true, m_SelectedBlackScienceCaptainID, ConfigM.GetInitMana()); GodSkillWnd gsw = WndManager.GetDialog <GodSkillWnd>(); if (gsw != null) { gsw.SetCurMana(CmCarbon.GetGodSkillMana(true)); gsw.SetRequireMana(CmCarbon.GetGodSkill(true).GetRequireMana()); } } CombatScheduler.SetCSState(CSState.Combat); }