Function that does not affect him Time.timeScale?

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

Well, if you read the docs of Time.timeScale you will notice a part stating that FixedUpdate won’t be called when Time.timescale is zero.

You can use Update, since this method is not affected by timeScale. Note however that when you set Time.timeScale to 0, Time.deltaTime will be 0 aswell.