Hello this is my current error but not sure how to fix it
Assets\SampleScenes\Menu\Scripts\SceneAndURLLoader.cs(19,15): error CS1061: ‘PauseMenu’ does not contain a definition for ‘MenuOff’ and no accessible extension method ‘MenuOff’ accepting a first argument of type ‘PauseMenu’ could be found (are you missing a using directive or an assembly reference?)
And here is my script i highlighted error in green
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneAndURLLoader : MonoBehaviour
{
private PauseMenu m_PauseMenu;
private void Awake ()
{
m_PauseMenu = GetComponentInChildren ();
}
public void SceneLoad(string sceneName)
{
//PauseMenu pauseMenu = (PauseMenu)FindObjectOfType(typeof(PauseMenu));
NewMethod();
SceneManager.LoadScene(sceneName);
}
private void NewMethod()
{
m_PauseMenu.MenuOff();
}
public void LoadURL(string url)
{
Application.OpenURL(url);
}
}