Web changes
This commit is contained in:
@@ -13,7 +13,7 @@ public class SettingsMenu : MonoBehaviour
|
||||
{
|
||||
musicSlider.value = PlayerPrefs.GetFloat("musicVolume", 1f);
|
||||
sfxSlider.value = PlayerPrefs.GetFloat("sfxVolume", 1f);
|
||||
if (!Application.isMobilePlatform)
|
||||
if (!Application.isMobilePlatform && Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
setting1toggle.isOn = PlayerPrefs.GetInt("Setting1", 1) == 1;
|
||||
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
|
||||
@@ -24,6 +24,10 @@ public class SettingsMenu : MonoBehaviour
|
||||
setting1toggle.interactable = false;
|
||||
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
|
||||
setting3toggle.interactable = false;
|
||||
if (Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
setting1toggle.isOn = false;
|
||||
}
|
||||
}
|
||||
setting1toggle.onValueChanged.AddListener(value =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user