void Awake() { if (instance == null) { instance = this; } else { Debug.LogError("More than one HUD"); } }