コード例 #1
0
        public IEnumerator StartBattleJudge()
        {
            AudioSource source   = SingletonMonoBehaviour <SoundManager> .Instance.seSourceObserver[5].source;
            AudioClip   clip     = SoundFile.LoadSE(GetFanfare());
            float       waitTime = clip.length / 3f;

            if (!_isBattleCut)
            {
                _uiBackground.Show(0.5f, null);
            }
            yield return(new WaitForSeconds(0.5f));

            ShowHPGauge(_listHPGauges[0]);
            ShowHPGauge(_listHPGauges[1]);
            yield return(new WaitForSeconds(0.5f));

            _listHPGauges.ForEach(delegate(BtlCut_UICircleHPGauge x)
            {
                x.PlayNonColor().setDelay(0.5f);
            });
            if (_iWinRank == BattleWinRankKinds.S)
            {
                TrophyUtil.Unlock_At_BattleResultOnlySally();
                ShowCongratulation();
            }
            _uiJudgeLabel.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            yield return(new WaitForSeconds(0.3f));

            _traRankBase.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            yield return(new WaitForSeconds(0.8f));

            _uiRankTex.SetActive(isActive: true);
            KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage);
            source.PlayOneShot(clip);
            yield return(new WaitForSeconds(waitTime));

            Hide();
            yield return(new WaitForSeconds(0.5f));
        }