// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } gameObject.SetActive(false); }
// Use this for initialization public GameOverPanelScript() { Instance = this; IsOpen = false; }