/// <summary> /// 各ステージに挑戦するとき /// </summary> private void MoveStage() { if (_isSceneMove) { return; } _isSceneMove = true; //ボタンをロック StartButton.interactable = false; SelectWindowActive.ActiveWindowIndex = _button.WindowIndex; //先のステージをすべて登録 var nextStageList = new List <StageInfo>(); while (_button.NextStage) { _button = _button.NextStage; nextStageList.Add( new StageInfo( _button.LoadPathName, _button.LoadStudioName, _button.WindowIndex )); } nextStageList.Add(null); GameMaster.SetNextStage(nextStageList); GameMaster.LoadPathName = LoadPathName; GameMaster.LoadStudioName = LoadStudioName; AudioManager.PlaySE("Button3"); FindObjectOfType <TimerController>().SceneMove("GameScene"); }
/// <summary> /// ウィンドウを表示する /// </summary> /// <param name="button"></param> public void Show(StageMoveButton button) { _button = button; FrameImage.sprite = button.FrameImage.sprite; FrameImage.color = button.FrameImage.color; StageImage.sprite = button.StageImage.sprite; LoadPathName = button.LoadPathName; LoadStudioName = button.LoadStudioName; Title.text = button.Title; var data = GameData.StageData[LoadPathName]; Score.text = data.Score.ToString(); Accuracy.text = data.Accuracy <= 1.0f ? "100" : (data.Accuracy * 100).ToString("00.00"); MaxCombo.text = data.MaxCombo.ToString(); Body.SetActive(true); }
/// <summary> /// ステージ選択のウィンドウを表示する /// </summary> /// <param name="button"></param> public void ShowStageWindow(StageMoveButton button) { StageContentView.Show(button); _state = StageSelectState.StageContentView; }