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