Example #1
0
        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;
            }
        }
Example #2
0
 public TrialProperties(TrialText text, TrialColor color, TrialSound sound)
 {
     this.text  = text;
     this.color = color;
     this.sound = sound;
 }