private void RhythmGameNoteJudge(RhythmGameNoteJudgeMsg msg) { if (msg.rhythmNote == RhythmNote.Bad || msg.rhythmNote == RhythmNote.Miss) { nowCombo = 0; bad++; } else if (msg.rhythmNote == RhythmNote.Normal) { nowCombo++; normal++; } else if (msg.rhythmNote == RhythmNote.Good) { nowCombo++; good++; } else if (msg.rhythmNote == RhythmNote.Perfect) { nowCombo++; perfect++; } if (nowCombo > maxCombo) { maxCombo = nowCombo; } Message.Send <RhythmGameComboMsg>(new RhythmGameComboMsg(nowCombo)); }
private void RhythmGameNoteJudge(RhythmGameNoteJudgeMsg msg) { if (msg.rhythmNote == RhythmNote.Bad) { nowCombo = 0; bad++; Debug.Log("bad : " + bad); } else if (msg.rhythmNote == RhythmNote.Normal) { nowCombo++; normal++; Debug.Log("Normal : " + normal); } else if (msg.rhythmNote == RhythmNote.Good) { nowCombo++; good++; Debug.Log("Good : " + good); } else if (msg.rhythmNote == RhythmNote.Perfect) { nowCombo++; perfect++; Debug.Log("Perfect : " + perfect); } if (nowCombo > maxCombo) { maxCombo = nowCombo; } }