void Judgment(string position) { GameObject rhythmIcon = GameObject.Find(position); // 対象のリズムアイコンがなければreturn if (rhythmIcon == null) { return; } RhythmIconController icon = rhythmIcon.GetComponent <RhythmIconController>(); for (int i = 0; i <= 3; i++) { if (iconPositionJudg[i, 0] <= icon.PositionVector && icon.PositionVector <= iconPositionJudg[i, 1]) { switch (i) { case 0: ui.SetJudgmentText(StageUIController.JUDGE_PERFECT); break; case 1: ui.SetJudgmentText(StageUIController.JUDGE_GOOD); break; case 2: ui.SetJudgmentText(StageUIController.JUDGE_NICE); break; case 3: ui.SetJudgmentText(StageUIController.JUDGE_BAD); break; default: break; } icon.IconDestroy(); break; } } }
private void MissIcon() { ui.SetJudgmentText(StageUIController.JUDGE_MISS); IconDestroy(); }