/// <summary> /// 指定の判定スコアを追加する /// </summary> public void AddJudge(MusicNote note, MusicJudgeKind kind) { ++JudgeCount[kind]; gGreatText.text = JudgeCount[kind].ToString(); RefreshScore(); GaugeValue += judgeGaugeValues[kind]; if (GaugeValue > MusicConst.GaugeMaxValue) { GaugeValue = MusicConst.GaugeMaxValue; } RefreshGauge(); // コンボ if (kind == MusicJudgeKind.Bad) { ComboValue = 0; } else { ++ComboValue; } // 判定表示 judgeObjects[MusicTapNotesLocator.Instance.PlaceToJudgePosition[note.Place]].Set(kind, ComboValue); }
/// <summary> /// 指定のノーツを指定の判定で取る /// </summary> public void NoteJudge(List <MusicNote> notes, MusicJudgeKind kind) { foreach (MusicNote note in notes) { scoreManager.AddJudge(note, kind); objectManager.GenerateEffect(note); } soundManager.PlaySE(); }
/// <summary> /// 判定表示を設定する /// </summary> public void Set(MusicJudgeKind kind, int comboCount) { gameObject.SetActive(true); combo.text = (comboCount > 0) ? comboCount.ToString() : ""; activeTimer = 0.6f; }