using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ReviveScreenUI : MonoBehaviour { public GameObject ReviveButton; private void OnEnable() { Debug.Log("Ad is available: " + AdsManager.Instance.isRewardedAdAvailable); ReviveButton.SetActive(AdsManager.Instance.isRewardedAdAvailable); } }