Make the latest version request not resend each main menu load
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user