Initial commit

This commit is contained in:
Lncvrt committed 2025-08-04 16:34:26 -07:00
commit 03c9b6ca15
473 files changed
+75551

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
using UnityEngine;
using UnityEngine.UI;
public class UpdateRequired : MonoBehaviour
{
void Awake()
{
GameObject buttonObj = GameObject.Find("Canvas/Button");
Button btn = buttonObj.GetComponent<Button>();
btn.onClick.AddListener(TaskOnClick);
}
void TaskOnClick()
{
#if UNITY_STANDALONE_WIN
string osSpecificPath = "/windows";
#elif UNITY_STANDALONE_OSX
string osSpecificPath = "/macos";
#elif UNITY_STANDALONE_LINUX
string osSpecificPath = "/linux";
#elif UNITY_ANDROID
string osSpecificPath = "/android";
#else
string osSpecificPath = "";
#endif
string finalUrl = "https://foodiedash.xytriza.com/download" + osSpecificPath;
Application.OpenURL(finalUrl);
}
}