// Use this for initialization void Start() { _rewardedVideoManager = RewardedVideoManager.Instance; _thisButton = GetComponent <Button>(); _thisButton.interactable = false; BindAction(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
// Use this for initialization new void Start() { base.Start(); _rewardedVideoManager = FindObjectOfType <RewardedVideoManager>(); _rewardedVideoManager.OnVideoCompleted += OnVideoSuccessful; }