void Update() { updateStartTime -= Time.deltaTime; if (updateStartTime > 0f || bWaitFade) { return; } if (scriptLineIndex < m_TalkData.Count) { bool isWaitForInput = AnalyseOneLine(m_TalkData[scriptLineIndex]); lastLineIndex = scriptLineIndex; if (!isWaitForInput) { scriptLineIndex++; bStopType = false; } if (Input.GetMouseButtonDown(0) && isWaitForInput) { if (!bTyping)//没有进行打字则是已经显示完毕 { scriptLineIndex++; bStopType = false; } else { bTyping = false;//停止打字,并且将该处文字全部显示 bStopType = true; } } } else//此处结束显示 { musicController.NormalBGM(); gameMode.UIManager.ScreenNormalToDark(1.0f, false, Hide); } }
public override void OnEnter() { SoundManage musicController = SoundManage.Instance; if (musicController != null) { if (Lower) { musicController.LowerBGM(); } else if (Restore) { musicController.NormalBGM(); } else { musicController.SetBGMVolume(Volume); } } Continue(); }