﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.InteropServices;

public class OpenUrls : MonoBehaviour {

	#if UNITY_WEBGL || UNITY_EDITOR
	public static void OpenLink(string url)
	{
		#if !UNITY_EDITOR
			openWindow(url);
		#else
			Application.OpenURL(url);
		#endif
	}

	[DllImport("__Internal")]
	private static extern void openWindow(string url);
	#endif
}
