void Awake() { // Register the singleton if (Instance != null) { Debug.LogError("Multiple instances!"); } Instance = this; }