public void Update() { if (IsCompleteDisplayText) { if (sw == true) { sw = false; if (currentLine < scenario_.Length) { SetNextLine(); } else if (scenario_number_ + 1 < novelData.VNInfoList.Count) { SetNextScenario(); } else { SceneManagerEx.LoadSceneWithArg("Battle", new object[] { stage_model_ }, LoadSceneMode.Single); } } } else { // 完了してないなら文字をすべて表示する if (sw == true) { timeUntilDisplay = 0; sw = false; Debug.Log("Push"); } } // クリックから経過した時間が想定表示時間の何%か確認し、表示文字数を出す int displayCharacterCount = (int)(Mathf.Clamp01((Time.time - timeElapsed) / timeUntilDisplay) * currentText.Length); // 表示文字数が前回の表示文字数と異なるならテキストを更新する if (displayCharacterCount != lastUpdateCharacter) { uiText.text = currentText.Substring(0, displayCharacterCount); lastUpdateCharacter = displayCharacterCount; } if (currentName < name.Length) { NameUpdate(); CharaUpdate(chara_number_); } }
public void LoadingSelectStage() { SceneManagerEx.LoadSceneWithArg("SelectStage", new object[] { BattleData.StageModel.ChapterId, BattleData.StageModel.Id }, LoadSceneMode.Single); }
public void OnClick() { Debug.LogFormat("SelectStageButton.OnClick id:{0}", model_.Id); SceneManagerEx.LoadSceneWithArg("VisualNovel", new object[] { model_ }, LoadSceneMode.Single); }
private void ReloadThisScene(int num) { SceneManagerEx.LoadSceneWithArg("tutorialTurn", num, LoadSceneMode.Single); }
public void LoadSelectStageScene(int id) { Debug.LogFormat("MainStoryScene id:{0}", id); SceneManagerEx.LoadSceneWithArg("SelectStage", new object[] { id }, LoadSceneMode.Single); }