// Jimmy Vegas Unity Tutorials // These scripts will puase your game and open URL links using System.Collections; using System.Collections.Generic; using UnityEngine; public class URLOpening : MonoBehaviour { public void OpenLink() { Application.OpenURL("http://facebook.com/jimmyvegas3d"); } } //======================= using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityStandardAssets.Characters.FirstPerson; public class PauseGame : MonoBehaviour { public GameObject ThePlayer; public bool Paused = false; public GameObject PauseMenu; void Update () { if (Input.GetButtonDown("Cancel")) { if (Paused == false) { PauseMenu.SetActive(true); Time.timeScale = 0; Paused = true; ThePlayer.GetComponent().enabled = false; Cursor.visible = true; } else { ThePlayer.GetComponent().enabled = true; Paused = false; Time.timeScale = 1; PauseMenu.SetActive(false); Cursor.visible = false; } } } }