LevelBattleCombatMono.cs 937 B

1234567891011121314151617181920212223242526272829303132
  1. using Fort23.Core;
  2. using Fort23.Mono;
  3. using GameLogic.Combat;
  4. using GameLogic.Combat.CombatTool;
  5. using GameLogic.Combat.CombatType;
  6. namespace GameUI.Combat
  7. {
  8. public class LevelBattleCombatMono : CombatMonoBaisc
  9. {
  10. protected override async CTask ProGameOver(bool isWin)
  11. {
  12. LevelBattleCombatType levelBattleCombatType = CombatDrive.Instance.CombatController.CombatTypeBasic as LevelBattleCombatType;
  13. if (levelBattleCombatType._startCombatInfo.isCombatOverUi)
  14. {
  15. await BattleSettlementPanel.OpenPanel(isWin, UICallBack);
  16. }
  17. else
  18. {
  19. UICallBack();
  20. }
  21. }
  22. private async void UICallBack()
  23. {
  24. await UIManager.Instance.HideUIUIPanel<CombatPanel>();
  25. CombatDrive.Instance.CombatToStage(CombatController.currActiveCombat.isWin);
  26. }
  27. }
  28. }