using System; using System.Collections.Generic; using asap.core; using DataCenter; using GameCore; using TMPro; using UI.OfferDiscoParty; using UniRx; using UnityEngine; using UnityEngine.UI; public class HomeBtnDisco : EventButtonResource { private const string EntranceRedPointKey = "DiscoParty.enter"; // 管理器 private OfferDiscoPartyManager _offerDiscoPartyManager; #region UIElement private Image _iconImage; private GameObject _redpoint; private Button _btnEnter; private TMP_Text _textTime; #endregion private Timer _timer; private CompositeDisposable _disposables = new(); #region 生命周期 private void Awake() { _offerDiscoPartyManager = GContext.container.Resolve(); _iconImage = transform.Find("icon").GetComponent(); _redpoint = transform.Find("redpoint").gameObject; _btnEnter = transform.GetComponent