You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Feel/MMTools/Tools/MMUtilities/MMOpenURL.cs

26 lines
617 B
C#

3 months ago
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);
}
}
}