Make the latest version request not resend each main menu load

This commit is contained in:
2025-06-05 15:29:51 -07:00
parent 73cf036569
commit 4a1b96d0bf
9 changed files with 380 additions and 29 deletions

View File

@@ -1,12 +1,19 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class MenuScript : MonoBehaviour
{
public Button exitButton;
public TMP_Text updateText;
public Button updateButton;
void Awake()
{
LatestVersionText.Instance.text = updateText;
LatestVersionText.Instance.updateButton = updateButton;
LatestVersionText.Instance.RefreshText();
if (Application.isMobilePlatform || Application.isEditor || Application.platform == RuntimePlatform.WebGLPlayer)
{
exitButton.gameObject.SetActive(false);