Exemplo n.º 1
0
 private void PlayNonRhythmVoice(AudioObject obj = null)
 {
     if (m_CurSentenceIndex == 0 ||
         (m_CurSentenceIndex > 0 && CorePlayData.CurrentSong.NonRhythmSenteces[m_CurSentenceIndex - 1].Type == SentenceType.NonRhythmCommon))
     {
         VoiceController.Show(CreateVoiceSentence);
     }
     else
     {
         CreateVoiceSentence();
     }
     m_Timer = 0;
 }
Exemplo n.º 2
0
    void StartReadCurSentence()
    {
        m_Status      = Status.ReadContent;
        m_WrongNumber = 0;
        m_CurGroup    = CorePlayData.CurrentSong.StreamSentences[m_CurrentSentenceIndex];
        if (m_CurrentSentenceIndex > 0 && CorePlayData.CurrentSong.StreamSentences[m_CurrentSentenceIndex - 1].CalckSentence)
        {
            m_SentenceCheckResult = RuntimeConst.BossWarLose;
        }
        m_CurrentBossSentence   = m_CurGroup.GetOneSentence();
        m_CurrentSentenceLength = m_CurGroup.TimeLength * 0.001f * m_MoreTimeParam;
        switch (m_CurGroup.Type)

        {
        case SentenceType.Common:
            CreateSentence();
            //m_BossWarNode.ShowTip();
            //m_TapCreator.ShowWord();
            m_TapCreator.SetClickable();
            PlayAudio();
            break;

        case SentenceType.Voice:
            if (m_CurrentSentenceIndex == 0 ||
                (m_CurrentSentenceIndex > 0 && CorePlayData.CurrentSong.StreamSentences[m_CurrentSentenceIndex - 1].Type == SentenceType.Common))
            {
                //CorePlayManager.Instance.VoiceUIFadeIn(CreateVoice);
                VoiceController.Show(CreateVoice);
            }
            else
            {
                CreateVoice();
            }
            ReadContentFinish(null);
            StaticMonoBehaviour.Instance.StartCoroutine(DelayCheckMissleCreate(m_CurrentSentenceLength - 1));
            break;
        }
    }
Exemplo n.º 3
0
 public void BGFadeIn(Action callback = null)
 {
     VoiceController.Show(callback);
 }
Exemplo n.º 4
0
 private void StartPlaySound(AudioObject audioObj)
 {
     VoiceController.Show();
     m_Status = TutorialStatus.PlaySound;
 }