// --------------------------------------------------------------------------------------------------------------------
//
// Part of: Pun Cockpit Demo
//
// developer@exitgames.com
// --------------------------------------------------------------------------------------------------------------------
using UnityEngine;
using UnityEngine.EventSystems;
namespace Photon.Pun.Demo.Cockpit
{
///
/// Open an Url on Pointer Click.
///
public class OnlineDocButton : MonoBehaviour, IPointerClickHandler
{
public string Url = "https://doc.photonengine.com/en-us/pun/v2/getting-started/pun-intro";
//Detect if a click occurs
public void OnPointerClick(PointerEventData pointerEventData)
{
Application.OpenURL(Url);
}
}
}