using System.Collections.Generic; using CombatLibrary.CombatLibrary.CombatCore.Utility; using Common.Utility.CombatEvent; using Core.Audio; using Fort23.Core; using Fort23.Mono; using Fort23.UTool; using GameLogic.Bag; using GameLogic.Combat.CombatTool; using GameLogic.Combat.CombatType; using UnityEngine; using UnityEngine.UI; using Utility.UITool; namespace GameUI.Combat { /// /// 战斗和mono层的桥接 /// public class CombatMonoBaisc { protected CombatController combatController; public async CTask Init(CombatController combatController) { this.combatController = combatController; AddEvent(); } protected void AddEvent() { EventManager.Instance.AddEventListener(CustomEventType.Combat_ItemShow, Combat_ItemShow); // CombatEventManager.Instance.AddEventListener(CombatEventType.HeroDieFinish, HeroDie); } public async CTask GameOver(bool isWin) { await ProGameOver(isWin); } protected virtual async CTask ProGameOver(bool isWin) { } // protected void HeroDie(IEventData iEventData) // { // HeroDieEventData heroDieEventData= iEventData as HeroDieEventData; // if (heroDieEventData.combatHeroEntity.IsEnemy) // { // return; // } // // BetterList myHero = combatController.CombatHeroController.GetHeroList(false); // if (myHero.Count <= 0) // { // // BattleSettlementPanel.OpenPanel(true); // } // } protected void Combat_ItemShow(IEventData iEventData) { } private void SetTargetPoint(ImageMove imageMove) { } public void Update(float t) { } } }