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.
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|