Exemplo n.º 1
0
 void CheckMouseHover()
 {
     if (song.isPlaying && song.hasStarted && !isMouseOverGame()) //fullWindow.Contains(Event.current.mousePosition)
     {
         song.Pause();
         Time.timeScale = 0.0f;
     }
     if (!song.isPlaying && song.hasStarted && isMouseOverGame()) //!fullWindow.Contains(Event.current.mousePosition)
     {
         song.Play();
         Time.timeScale = gameSpeed;
     }
 }
Exemplo n.º 2
0
 public void Pause()
 {
     songController.Pause();
 }