diff --git a/Assets/Scripts/LatestVersionText.cs b/Assets/Scripts/LatestVersionText.cs index 6f4b768..c0f069f 100644 --- a/Assets/Scripts/LatestVersionText.cs +++ b/Assets/Scripts/LatestVersionText.cs @@ -10,16 +10,20 @@ public class LatestVersionText : MonoBehaviour void Awake() { + text = gameObject.GetComponent(); updateButton.onClick.AddListener(() => { Application.OpenURL("https://berrydash.lncvrt.xyz/download"); }); - text = gameObject.GetComponent(); + if (Application.platform == RuntimePlatform.WebGLPlayer) + { + text.text = ""; + } } void Start() { - GetLatestVersion(); + if (Application.platform != RuntimePlatform.WebGLPlayer) GetLatestVersion(); } async void GetLatestVersion() diff --git a/Assets/Scripts/VersionText.cs b/Assets/Scripts/VersionText.cs index a0eace1..ee403de 100644 --- a/Assets/Scripts/VersionText.cs +++ b/Assets/Scripts/VersionText.cs @@ -3,8 +3,13 @@ using UnityEngine; public class VersionText : MonoBehaviour { + private TMP_Text text; void Awake() { - gameObject.GetComponent().text = "Current: v" + Application.version; + text = gameObject.GetComponent(); + if (Application.platform != RuntimePlatform.WebGLPlayer) + { + text.text = "Current: v" + Application.version; + } } }