// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.A)) { controller.PlaySoundEffect(clips[2], 1); } if (Input.GetKeyDown(KeyCode.D)) { controller.PlaySoundEffect(clips[3], 1); } }
void OneShot() { controller.PlaySoundEffect(clips[2]); }