hey im trying to make a pause menu, it keeps poping up at the start and i have no idea how to fix.

when i start up the game the canvas pops up, i dont know what im doing wrong: here is my canvas script

using UnityEngine;
using System.Collections;

public class PauseGame : MonoBehaviour {
public Transform canvas;

// Update is called once per frame
void Update () {
    if (Input.GetKeyDown(KeyCode.Escape))
    {
        Pause();
    }
}
public void Pause()
{
    if (canvas.gameObject.activeInHierarchy == false)
    {
        canvas.gameObject.SetActive(true);
        Time.timeScale = 0;
        AudioListener.volume = 0;
    }
    else
    {
        canvas.gameObject.SetActive(false);
        Time.timeScale = 1;
        AudioListener.volume = 1;
    }
}

        public void Exit(){
            Application.Quit();
}

}

im trying to disable it at the start in game manger but it wont let me add it to the script. anyone have any idea they would be much appreciated

I think that you should declare it as false in the Start method.