using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UI_Script : MonoBehaviour { private Canvas canvas; // Start is called before the first frame update void Start() { canvas = GetComponent(); } // Update is called once per frame void Update() { canvas.enabled = !Static_GlobalStats.paused; } }