Example #1
0
 public void RecordToggle()
 {
     if (recording == false)
     {
         count           = 0;
         timestamp       = 0;
         recording       = true;
         recordText.text = "Recording";
         UIManager.PlayOff();
         UIManager.InstrumentOff();
     }
     else
     {
         timestamp       = 0;
         lastCount       = count;
         recording       = false;
         recordText.text = "Record";
         if (recorded)
         {
             UIManager.PlayOn();
         }
         UIManager.InstrumentOn();
     }
 }