Hi, I pause my game with Time.timeScale = 0.0f and open the pause menu I have 2 sprites for sound mute/unmute, if press each one should change but if Time.timeScale = 0.0f do nothing.
void FixedUpdate(){
if(PlayerPrefs.GetString("Sound") == "0")
{
buttonMute.SetActive(true);
buttonSound.SetActive(false);
}
else
{
buttonMute.SetActive(false);
buttonSound.SetActive(true);
}
}
There are any function instead of FixedUpdate that does not affect for Time.timeScale? Or other way to do this?
Thanks ;D
↧