using asap.core; using cfg; using GameCore; using TMPro; using UnityEngine; using UnityEngine.UI; public class RewardItem : MonoBehaviour { private Tables _tables => GContext.container.Resolve(); public Image icon; public TMP_Text text_num; public GameObject received; public Button btn_click; private int id = 0; private float count = 0; bool isClick = false; #if UNITY_EDITOR private void Reset() { Awake(); } #endif private void Awake() { if (icon == null) { icon = transform.Find("icon").GetComponent(); } if (text_num == null) { text_num = transform.Find("text_num")?.GetComponent(); } if (received == null) { received = transform.Find("received")?.gameObject; } if (btn_click == null) { btn_click = GetComponent