TO SQUASH: Fixed pause not doing anything.
This commit is contained in:
@@ -39,10 +39,12 @@ public class Pause : MonoBehaviour
|
||||
{
|
||||
audioSource.PlayOneShot(pauseSound);
|
||||
musicManager.pauseMusic();
|
||||
Time.timeScale = 0.0f; // Pause the game
|
||||
}
|
||||
else
|
||||
{
|
||||
musicManager.resumeMusic();
|
||||
Time.timeScale = 1.0f; // Resume the game
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user