| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using Cysharp.Threading.Tasks; |
| | | using LitJson; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | //战场结算界面,存在多个的情况 |
| | | public class BattleFailWin : UIBase |
| | | { |
| | | |
| | | [SerializeField] Button tipHeroCultivateBtn; |
| | | [SerializeField] Button tipEquipBtn; |
| | | [SerializeField] Button tipHeroPosBtn; |
| | | string battleName = "ArenaBattleField"; |
| | | [SerializeField] ButtonEx detailBtn; |
| | | string battleName = BattleConst.StoryBossBattleField; |
| | | |
| | | protected override void InitComponent() |
| | | { |
| | | tipHeroCultivateBtn.AddListener(() => |
| | | { |
| | | CloseWindow(); |
| | | }); |
| | | |
| | | tipEquipBtn.AddListener(() => |
| | | { |
| | | CloseWindow(); |
| | |
| | | CloseWindow(); |
| | | UIManager.Instance.OpenWindow<HeroPosWin>(); |
| | | }); |
| | | |
| | | detailBtn.SetListener(() => |
| | | { |
| | | BattleSettlementManager.Instance.OpenBattleDetailWin(battleName); |
| | | }); |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | if (!FirstChargeManager.Instance.GetLocalFail()) |
| | | { |
| | | FirstChargeManager.Instance.SetLocalFail(); |
| | | } |
| | | FirstChargeManager.Instance.TryPopWin(); |
| | | } |
| | | |
| | | |