public void Play(TrialSound sound) { switch (sound) { case TrialSound.Red: controller.PlayClipWithAnimation(redClip, redTrigger, null); break; case TrialSound.Blue: controller.PlayClipWithAnimation(blueClip, blueTrigger, null); break; case TrialSound.Green: controller.PlayClipWithAnimation(greenClip, greenTrigger, null); break; } }
public TrialProperties(TrialText text, TrialColor color, TrialSound sound) { this.text = text; this.color = color; this.sound = sound; }