示例#1
0
        private void EndMessage(bool forceOff = false)
        {
            if (holdForever)
            {
                continueFromSpeech = true;
                return;
            }
            endTime     = 0f;
            isSkippable = false;

            if (speaker)
            {
                speaker.StopSpeaking();
            }

            if (!forceOff && gapIndex >= 0 && gapIndex < speechGaps.Count)
            {
                gapIndex++;
            }
            else
            {
                isAlive = false;
                KickStarter.stateHandler.UpdateAllMaxVolumes();
            }
        }
示例#2
0
文件: Speech.cs 项目: IJkeB/Ekster1
        private void EndMessage(bool forceOff = false)
        {
            isSkippable = false;

            if (speaker)
            {
                speaker.StopSpeaking();
            }

            if (!forceOff && gapIndex >= 0 && gapIndex < speechGaps.Count)
            {
                gapIndex++;
            }
            else
            {
                isAlive = false;
                KickStarter.stateHandler.UpdateAllMaxVolumes();
            }
        }