Esempio n. 1
0
 private void OnPointerClick(object sender, PointerEventArgs e)
 {
     if (grab)
     {
         return;
     }
     if (on_laser)
     {
         canvas1.enabled = false;
         grab            = true;
         if (SceneManager.GetActiveScene().name == "pianorec")
         {
             hrir_control.Play("ShyPiano.wav");
         }
         else if (SceneManager.GetActiveScene().name == "guitarrec")
         {
             hrir_control.Play("ShyGuitar.wav");
         }
         else if (SceneManager.GetActiveScene().name == "bassrec")
         {
             hrir_control.Play("ShyBass.wav");
         }
         else if (SceneManager.GetActiveScene().name == "drumsrec")
         {
             hrir_control.Play("ShyDrums.wav");
         }
         else if (SceneManager.GetActiveScene().name == "micrec")
         {
             hrir_control.Play("ShyVoice.wav");
         }
         ob.StartRecord();
         Invoke("finishrec", time);
     }
 }
 // Start is called before the first frame update
 private void Start()
 {
     hrir_control = this.GetComponent <HRIRu>();
     hrir_control.Available();
     hrir_control.Play("ShyVoice.wav");
 }
 public void restart()
 {
     hrir_control.Play("ShyVoice.wav");
 }
 public void restart()
 {
     hrir_control.Play("ShyDrums.wav");
 }
 public void restart()
 {
     hrir_control.Play("ShyGuitar.wav");
 }
Esempio n. 6
0
 public void restart()
 {
     hrir_control.Play("ShyPiano.wav");
 }