Exemple #1
0
        public void ShowWithWatchAd()
        {
            Sound2DManager.Instance.StopBgm();
            _willReward = false;
            Advertiser.AdvertisementSystem.ShowEndGameBanner();
            _isShowAsNormal = false;

            _buttonWatchAd.SetActive(true);
            _panelRestart.SetActive(false);
            _panelWatchAd.SetActive(true);
            _labelWatchAdDesc.gameObject.SetActive(true);
            _labelWatchAdDesc.text =
                $"今日はあと<b><color=#F045C2><size=20>{PlayerPrefsHelper.WatchAdsTimesPerDay - PlayerPrefsHelper.WatchAdsTimesToday()}</size><size=14>/{PlayerPrefsHelper.WatchAdsTimesPerDay}</size><size=10>かい</size></color></b> 使えるよ";

            _watchAdDuration.DOFillAmount(0, 5)
            .OnComplete(ShowAsNormal);
        }