Fix update button not working

This commit is contained in:
2025-09-11 14:03:59 -07:00
parent 01454cce1f
commit 158c584f0a

View File

@@ -20,7 +20,10 @@ public class LatestVersionText : MonoBehaviour
Instance = this;
DontDestroyOnLoad(gameObject);
}
void Start()
{
if (updateButton != null)
{
updateButton.onClick.AddListener(() =>
@@ -28,10 +31,6 @@ public class LatestVersionText : MonoBehaviour
Application.OpenURL("https://berrydash.lncvrt.xyz/download");
});
}
}
void Start()
{
RefreshText();
if (latest == null) GetLatestVersion();
}