Remove some webgl stuff

Browser support is being dropped
This commit is contained in:
2025-07-01 22:53:58 -07:00
parent b1e479472f
commit 4e95668675
3 changed files with 4 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ public class LatestVersionText : MonoBehaviour
void Start() void Start()
{ {
RefreshText(); RefreshText();
if (Application.platform != RuntimePlatform.WebGLPlayer && latest == null) GetLatestVersion(); if (latest == null) GetLatestVersion();
} }
void OnEnable() void OnEnable()
@@ -63,9 +63,7 @@ public class LatestVersionText : MonoBehaviour
public void RefreshText() public void RefreshText()
{ {
if (text == null) return; if (text == null) return;
if (Application.platform == RuntimePlatform.WebGLPlayer) if (latest == null)
text.text = "";
else if (latest == null)
text.text = "Latest: Loading..."; text.text = "Latest: Loading...";
else if (latest == "-1") else if (latest == "-1")
text.text = "Latest: N/A"; text.text = "Latest: N/A";

View File

@@ -14,7 +14,7 @@ public class SettingsMenu : MonoBehaviour
{ {
musicSlider.value = PlayerPrefs.GetFloat("musicVolume", 1f); musicSlider.value = PlayerPrefs.GetFloat("musicVolume", 1f);
sfxSlider.value = PlayerPrefs.GetFloat("sfxVolume", 1f); sfxSlider.value = PlayerPrefs.GetFloat("sfxVolume", 1f);
if (!Application.isMobilePlatform && Application.platform != RuntimePlatform.WebGLPlayer) if (!Application.isMobilePlatform)
{ {
setting1toggle.isOn = PlayerPrefs.GetInt("Setting1", 1) == 1; setting1toggle.isOn = PlayerPrefs.GetInt("Setting1", 1) == 1;
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1; setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
@@ -27,10 +27,6 @@ public class SettingsMenu : MonoBehaviour
setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1; setting2toggle.isOn = PlayerPrefs.GetInt("Setting2", 0) == 1;
setting3toggle.interactable = false; setting3toggle.interactable = false;
setting4toggle.isOn = PlayerPrefs.GetInt("Setting4", 0) == 1; setting4toggle.isOn = PlayerPrefs.GetInt("Setting4", 0) == 1;
if (Application.platform == RuntimePlatform.WebGLPlayer)
{
setting1toggle.isOn = false;
}
} }
setting1toggle.onValueChanged.AddListener(value => setting1toggle.onValueChanged.AddListener(value =>
{ {

View File

@@ -7,13 +7,6 @@ public class VersionText : MonoBehaviour
void Awake() void Awake()
{ {
text = gameObject.GetComponent<TMP_Text>(); text = gameObject.GetComponent<TMP_Text>();
if (Application.platform != RuntimePlatform.WebGLPlayer) text.text = "Current: v" + Application.version;
{
text.text = "Current: v" + Application.version;
}
else
{
text.text = "v" + Application.version;
}
} }
} }