using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public static GameManager Instance = null; private void Awake() { if (Instance is null) Instance = this; else { DestroyImmediate(this); } } public GameObject ReviveCanvas; public ReviveOnClick reviveOnClick; public void OnRevival() { if (ReviveCanvas != null) { ReviveCanvas.SetActive(false); reviveOnClick.Was = false; } } }