void NotesProcess() { //タイミングのランクを登録する if (notesLeftPos <= 50f && notesLeftPos >= -30f) { Debug.Log("Excellent!!"); rankJudge = RANK.Excellent; } if (notesLeftPos < -30f && notesLeftPos >= -60f) { Debug.Log("Good!!"); rankJudge = RANK.Good; } if (notesLeftPos < -60f && notesLeftPos >= -150f) { Debug.Log("Bad!!"); rankJudge = RANK.Bad; } MainGame_SE mainGame_SE = seObj.GetComponent <MainGame_SE>(); mainGame_SE.StepSound();//足音 BeatUi.notesLefts.RemoveAt(0); Destroy(obj); }
void SE(int count) { //インデックス外になる if (count < actionTypeList.Count) { if (actionTypeList[count] == PlActionControl.ACTIONTYPE.Attack) { MainGame_SE mainGame_SE = seObj.GetComponent <MainGame_SE>(); mainGame_SE.SwordSound();// 効果音_剣 } } }