public void Attack() { attack_start = Time.time; attacking = true; atk_seq_n = -1; bell_boss.RunChuckCode(ChuckSynths.Bell(frequency, attack_dur)); Instantiate(note_spray, transform); }
public void Play(float freq, float dur) { if (instrument_name == "trumpet") { grand_parent.RunChuckCode(ChuckSynths.Trumpet(freq, dur)); } else if (instrument_name == "violin") { grand_parent.RunChuckCode(ChuckSynths.Violin(freq, dur)); } else if (instrument_name == "bell") { grand_parent.RunChuckCode(ChuckSynths.Bell(freq, dur)); } else if (instrument_name == "flute") { grand_parent.RunChuckCode(ChuckSynths.Flute(freq, dur)); } }