public void FlagSet(NotesType type) { switch (type) { case NotesType.wideWave: wideFlag = true; break; case NotesType.verticalWaveRight: rightFlag = true; vertical.NoteGenerate(verticalNoteR, 1); break; case NotesType.verticalWaveLeft: leftFlag = true; vertical.NoteGenerate(verticalNoteL, 2); break; case NotesType.punch: punchFlag = true; break; case NotesType.laser: laserFlag = true; break; case NotesType.throwCube: throwFlag = true; int p = Random.Range(0, 2); throwCube.NoteGenerate(throwNote, p); break; } }
public void NoteSet(NotesType type, string[] posBool) { switch (type) { case NotesType.wideWave: wideFlag = true; for (int i = 2; i < 8; i++) { if (posBool[i] == TRUE) { wide.NoteGenerate(wideNote, notePos[i - 2]); //Debug.Log(posBool[i]); } } break; case NotesType.verticalWaveRight: rightFlag = true; //Debug.Log(posBool[3]); //vertical.NoteGenerate(verticalNoteR, 1); for (int i = 2; i < 8; i++) { if (posBool[i] == TRUE) { vertical.NoteGenerate(verticalNoteR, notePos[i - 2]); //Debug.Log(posBool[i]); } } break; case NotesType.verticalWaveLeft: leftFlag = true; //vertical.NoteGenerate(verticalNoteL, 2); break; case NotesType.punch: punchFlag = true; break; case NotesType.laser: laserFlag = true; break; case NotesType.throwCube: throwFlag = true; //int p = Random.Range(0, 2); bool R = false; bool L = false; for (int i = 2; i < 8; i++) { if (posBool[i] == TRUE) { if (i - 2 <= 2) { R = true; } if (i - 2 >= 3) { L = true; } //Debug.Log(posBool[i]); } } if (R == true) { throwCube.NoteGenerate(throwNote, new Vector3(0, 0, 0)); } if (L == true) { throwCube.NoteGenerate(throwNote, new Vector3(1, 0, 0)); } break; } }