123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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
- {
- /// <summary>
- /// 战斗和mono层的桥接
- /// </summary>
- public class CombatMonoBaisc
- {
- private 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);
- }
- protected void HeroDie(IEventData iEventData)
- {
- HeroDieEventData heroDieEventData= iEventData as HeroDieEventData;
- if (heroDieEventData.combatHeroEntity.IsEnemy)
- {
- return;
- }
- BetterList<CombatHeroEntity> myHero = combatController.CombatHeroController.GetHeroList(false);
- if (myHero.Count <= 0)
- {
-
- }
- }
- protected void Combat_ItemShow(IEventData iEventData)
- {
-
- }
- private void SetTargetPoint(ImageMove imageMove)
- {
-
- }
- public void Update(float t)
- {
- }
- }
- }
|