1 using System;
2 using
UnityEngine;
3 using
UnityEngine.SceneManagement;
4
5 public
class SceneAndURLLoader : MonoBehaviour
6 {
7     
private PauseMenu m_PauseMenu;
8
9
10     
private void Awake ()
11     {
12         m_PauseMenu = GetComponentInChildren <PauseMenu> ();
13     }
14
15
16     
public void SceneLoad(string sceneName)
17     {
18         
//PauseMenu pauseMenu = (PauseMenu)FindObjectOfType(typeof(PauseMenu));
19         m_PauseMenu.MenuOff ();
20         SceneManager.LoadScene(sceneName);
21     }
22
23
24     
public void LoadURL(string url)
25     {
26         Application.OpenURL(url);
27     }
28 }