hellbound/Assets/Sources/Feel/MMTools/Tools/MMUtilities/MMOpenURL.cs

27 lines
659 B
C#
Raw Normal View History

2021-11-26 11:16:25 +03:00
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using MoreMountains.Tools;
namespace MoreMountains.Tools
{
/// <summary>
/// A class used to open a URL specified in its inspector
/// </summary>
[AddComponentMenu("More Mountains/Tools/Utilities/MMOpenURL")]
public class MMOpenURL : MonoBehaviour
{
/// the URL to open when calling OpenURL()
public string DestinationURL;
/// <summary>
/// Opens the URL specified in the DestinationURL field
/// </summary>
public virtual void OpenURL()
{
Application.OpenURL(DestinationURL);
}
}
}