I tried writing my (Get) method to assign a local variable with the Volume Key and return it after.
Are there any advantages to using the method in this way? Or is it a bad idea?
(Rick’s Code)
return PlayerPrefs.GetFloat(MASTER_VOLUME_KEY);
(My Attempt)
public static float GetMasterVolume()
{
float volume = PlayerPrefs.GetFloat(MASTER_VOLUME_KEY);
Debug.Log("Volume is " + volume);
return volume;
}