public void PlayOriginal() { //Check level here Debug.Log(s1.level); if (s1.level == 1) { S1.clip = clip_C4; S2.clip = clip_C4; S1.Play(); S2.PlayDelayed(S1.clip.length - 1); } }
public void PlayOriginal() { //Check level here Debug.Log(s1.level); if (s1.level == 1) { S1.clip = clip_C4; S2.clip = clip_C4; S3.clip = clip_G4; S4.clip = clip_G4; S1.Play(); S2.PlayDelayed(S1.clip.length - 1); S3.PlayDelayed(S2.clip.length * 2 - 2); S4.PlayDelayed(S3.clip.length * 3 - 3); } else if (s1.level == 2) { S1.clip = clip_A4; S2.clip = clip_A4; S3.clip = clip_G4; S1.Play(); S2.PlayDelayed(S1.clip.length - 1); S3.PlayDelayed(S2.clip.length * 2 - 2); } else if (s1.level == 3) { S1.clip = clip_F4; S2.clip = clip_F4; S3.clip = clip_E4; S4.clip = clip_E4; S1.Play(); S2.PlayDelayed(S1.clip.length - 1); S3.PlayDelayed(S2.clip.length * 2 - 2); S4.PlayDelayed(S3.clip.length * 3 - 3); } else if (s1.level == 4) { S1.clip = clip_D4; S2.clip = clip_D4; S3.clip = clip_C4; S1.Play(); S2.PlayDelayed(S1.clip.length - 1); S3.PlayDelayed(S2.clip.length * 2 - 2); } }