using System;
using System.Threading.Tasks;
using Activity;
using asap.core;
using Event1v1Battle.Data;
using GameCore;
using TMPro;
using TimeManager;
using UniRx;
using UnityEngine;
using UnityEngine.UI;
namespace Event1v1Battle.Panel
{
///
/// 1v1扇耳光大赛结算弹窗面板 Event1v1BattleSlapPreviewPopupPanel
///
public class Event1v1BattleSlapPreviewPopupPanel : BasePanel
{
#region UI Elements
private Button _btnFight; // 重试按钮
private Button _btnRest; // 关闭按钮
private TMP_Text _textRound; // 当前轮次
private Image[] _lifeImages; // 剩余命数
private TMP_Text _textEventTime; // 活动剩余时间
private RewardItemNew[] _rewards; // 关卡奖励
#endregion
#region Manager
private Event1v1BattleSlapManager _manager;
private Event1v1BattleSlapManager Manager => _manager ??= ActivityResolver.Resolve();
private Event1v1BattleSlapData Data => Manager?.LoadData();
#endregion
private Animation _uiAnimation;
private void Awake()
{
// Buttons
_btnFight = gameObject.FindChildGameObject("btn_fight")?.GetComponentInChildren