using UnityEngine; public class GameManager : MonoBehaviour { private ConjureCreativeJam20 _controls; private GameState _state; public static GameManager Instance { get; private set; } private void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); } else { Instance = this; _controls = new ConjureCreativeJam20(); _state = GameState.InGame; } } public void TriggerGameOver(int dimensionID) { if (_state == GameState.Loss) return; // Stop controls _controls.Player.Disable(); _controls.UI.Enable(); // Show Game Over Message Debug.Log("Game Over: Dimension " + dimensionID + " has been destroyed"); // Show Options (Return to Menu / Retry) _state = GameState.Loss; } } public enum GameState { InGame, Loss }