From 158c584f0a028485a3c066646cafbe58d6fc5932 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 11 Sep 2025 14:03:59 -0700 Subject: [PATCH] Fix update button not working --- Assets/Scripts/LatestVersionText.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/LatestVersionText.cs b/Assets/Scripts/LatestVersionText.cs index be4b7a8..9baa89c 100644 --- a/Assets/Scripts/LatestVersionText.cs +++ b/Assets/Scripts/LatestVersionText.cs @@ -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(); }