23 lines
636 B
C#
23 lines
636 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class DownloadMarker : MonoBehaviour
|
|
{
|
|
public string driveLink = "https://drive.google.com/drive/folders/1Zv5Du7ri5rrHQcu-_upKtYAxmifWSDV1?usp=drive_link "; // Ganti dengan link Google Drive Anda
|
|
|
|
void Start()
|
|
{
|
|
// Pastikan tombol memiliki listener
|
|
Button downloadButton = GetComponent<Button>();
|
|
if (downloadButton != null)
|
|
{
|
|
downloadButton.onClick.AddListener(DownloadMarkerFile);
|
|
}
|
|
}
|
|
|
|
void DownloadMarkerFile()
|
|
{
|
|
// Buka link Google Drive di browser
|
|
Application.OpenURL(driveLink);
|
|
}
|
|
} |