Fix update button not working
This commit is contained in:
@@ -20,7 +20,10 @@ public class LatestVersionText : MonoBehaviour
|
|||||||
|
|
||||||
Instance = this;
|
Instance = this;
|
||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
if (updateButton != null)
|
if (updateButton != null)
|
||||||
{
|
{
|
||||||
updateButton.onClick.AddListener(() =>
|
updateButton.onClick.AddListener(() =>
|
||||||
@@ -28,10 +31,6 @@ public class LatestVersionText : MonoBehaviour
|
|||||||
Application.OpenURL("https://berrydash.lncvrt.xyz/download");
|
Application.OpenURL("https://berrydash.lncvrt.xyz/download");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
RefreshText();
|
RefreshText();
|
||||||
if (latest == null) GetLatestVersion();
|
if (latest == null) GetLatestVersion();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user