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