public JudgeType NormalNoteJudge(int differenceFrame, int judgeLane, JudgeData judgeData) { JudgeType judgeResult = JudgeType.None; JudgeStruct[] judges = judgeData.judges; bool isPush = false; // フレームの差が一番長い判定よりも大きくなったらミスにする if (differenceFrame < -judges[judges.Length - 1].flameRange) { particleController.ShowJudgeText(judgeLineTrans[judgeLane], judgeData.judges[(int)JudgeType.Miss].sprite); SetNextNote(judgeLane); judgeResult = JudgeType.Miss; } if (StaticValue.isAuto) { isPush = differenceFrame <= 0 ? true : false; } else { isPush = ButtonDownInput(judgeLane); } if (isPush) { for (int i = (int)JudgeType.Just; i < judges.Length; i++) { if (Mathf.Abs(differenceFrame) <= judges[i].flameRange) { //輝くノーツの場合は必ず最高判定にする if (nextNotes[judgeLane].IsShiny) { i = (int)JudgeType.Just; particleController.PlayParticle(judgeLineTrans[judgeLane], 4); } particleController.ShowJudgeText(judgeLineTrans[judgeLane], judges[i].sprite); particleController.PlayParticle(judgeLineTrans[judgeLane], i); SetLaneBeamColor(judgeLane, beamColor.beamColors[i]); nextNotes[judgeLane].JudgeHide(); PlayTapSE(NotesType.Normal, judgeLane, nextNotes[judgeLane].IsShiny); MightPlayFastLateAnim(differenceFrame, i); SetNextNote(judgeLane); return((JudgeType)Enum.ToObject(typeof(JudgeType), i)); } } SetLaneBeamColor(judgeLane, beamColor.noneColor); } return(judgeResult); }
void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { particleController.transform.position = transform.position; particleController.PlayParticle(); //EventManager.TriggerEvent("IncreaseScore"); //EventManager.TriggerEvent("PlayParticle"); AudioManager.instance.PlaySound("coin"); gameObject.SetActive(false); GameManager.instance.IncreaseScore(); UIManager.instance.CoinCollected(myTag, this.transform); } }