using asap.core; using cfg; using game; using GameCore; using System; using System.Collections.Generic; using System.Linq; using TMPro; using UI.Wheel; using UniRx; using UnityEngine.UI; namespace Assets.Scripts.UI.AdWheel { public class AdWheelPanel : BasePanel { #region UI_ELEMENTS private Image bar; private RewardItemNew bubble_reward; private RewardItemNew bubble_final; private AdWheelRewardComponent p_wheel; private TextMeshProUGUI text_time; private TextMeshProUGUI text_remaing; private AdvertButton AdvertBtn; private Button btn_close; private Button btn_cd; private TextMeshProUGUI p_text; #endregion private AdWheelManager _AdWheelManager; private AdWheelManager AdWheelManager => _AdWheelManager ??= GContext.container.Resolve(); private List _eventAdWheelRewards; private void Awake() { bar = this.gameObject.FindChildGameObject(nameof(bar)).GetComponent(); bubble_reward = this.gameObject.FindChildGameObject(nameof(bubble_reward)).GetComponentInChildren(); bubble_final = this.gameObject.FindChildGameObject(nameof(bubble_final)).GetComponentInChildren(); text_time = this.gameObject.FindChildGameObject(nameof(text_time)).GetComponent(); p_wheel = this.transform.GetComponentInChildren(); AdvertBtn = this.gameObject.FindChildGameObject(nameof(AdvertBtn)).GetComponent(); AdvertBtn.SetData(OnBuySuccess, AdvertPopupType.AdWheel); text_remaing = AdvertBtn.gameObject.FindChildGameObject(nameof(text_remaing)).GetComponent(); btn_close = this.gameObject.FindChildGameObject(nameof(btn_close)).GetComponent