Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (IsOnCooldown)
     {
         return;
     }
     currentCooldown += Time.deltaTime;
     if (thisControl == Controls.INVERT)
     {
         map.InvertNotes();
     }
     else if (thisControl == Controls.PAUSE)
     {
         map.PauseSong();
     }
     else if (thisControl == Controls.PLAY)
     {
         map.ResumeSong();
     }
     else if (thisControl == Controls.REWIND)
     {
         map.Rewind();
     }
     else if (thisControl == Controls.SAVE)
     {
         map.SaveCurrentMapToDisk();
     }
 }