private void Awake() { // Get singleton if (DebugInstance == null) { DebugInstance = this; } else if (DebugInstance != null) { if (!DebugInstance.Equals(this)) { DebugManager.WarningMessage($"DebugManager already has a singleton instance on: {DebugInstance.gameObject.name}"); Destroy(this); } } }