using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class ChestButton : MonoBehaviour { public bool IsSpecial = false; public bool readFromTexts; public TMP_Text txtPrice; public TMP_Text txtChestName; public string ChestName => txtChestName.text; public int Price; public float minLuck = 0; public float maxLuck = 100; public Button btnInfo; public Button adButton; [TextArea] public string infoTxt; void Start() { btnInfo.onClick.AddListener(OnClickedInfo); if(!IsSpecial){GetComponent