/// <summary> /// Singleton code, and it sets the screenState of this script /// </summary> protected override void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); } instance = this; screenState = MenuState.LevelSelect; }