Remove some webgl stuff
Browser support is being dropped
This commit is contained in:
@@ -33,7 +33,7 @@ public class LatestVersionText : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
RefreshText();
|
||||
if (Application.platform != RuntimePlatform.WebGLPlayer && latest == null) GetLatestVersion();
|
||||
if (latest == null) GetLatestVersion();
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
@@ -63,9 +63,7 @@ public class LatestVersionText : MonoBehaviour
|
||||
public void RefreshText()
|
||||
{
|
||||
if (text == null) return;
|
||||
if (Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
text.text = "";
|
||||
else if (latest == null)
|
||||
if (latest == null)
|
||||
text.text = "Latest: Loading...";
|
||||
else if (latest == "-1")
|
||||
text.text = "Latest: N/A";
|
||||
|
||||
@@ -14,7 +14,7 @@ public class SettingsMenu : MonoBehaviour
|
||||
{
|
||||
musicSlider.value = PlayerPrefs.GetFloat("musicVolume", 1f);
|
||||
sfxSlider.value = PlayerPrefs.GetFloat("sfxVolume", 1f);
|
||||
if (!Application.isMobilePlatform && Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
if (!Application.isMobilePlatform)
|
||||
{
|
||||
setting1toggle.isOn = PlayerPrefs.GetInt("Setting1", 1) == 1;
|
||||
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
|
||||
@@ -27,10 +27,6 @@ public class SettingsMenu : MonoBehaviour
|
||||
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
|
||||
setting3toggle.interactable = false;
|
||||
setting4toggle.isOn = PlayerPrefs.GetInt("Setting4", 0) == 1;
|
||||
if (Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
setting1toggle.isOn = false;
|
||||
}
|
||||
}
|
||||
setting1toggle.onValueChanged.AddListener(value =>
|
||||
{
|
||||
|
||||
@@ -7,13 +7,6 @@ public class VersionText : MonoBehaviour
|
||||
void Awake()
|
||||
{
|
||||
text = gameObject.GetComponent<TMP_Text>();
|
||||
if (Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
text.text = "Current: v" + Application.version;
|
||||
}
|
||||
else
|
||||
{
|
||||
text.text = "v" + Application.version;
|
||||
}
|
||||
text.text = "Current: v" + Application.version;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user