/// <summary> /// Try to declare anything you want to declare game-wise here. You can't statically declare up /// there because it needs the Manager to finish what it's doing first. /// </summary> private void InitializeGameState() { SorryScreen = new RestraintMessageScreen(); ChoiceMaker = new ChoiceMaker(); CurrentStage = new Stage(); CurrentStage.LoadLevel(InitialLevel); ChoiceMaker.Load(CurrentStage.Data.ChoiceId); Audio.PlayMusic("Balcony"); }
protected void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(this.gameObject); } _mansionFacet = new Mansion(); _choicesFacet = new ChoiceMaker(); _playerFacet = new Player(); _creatureManagerFacet = new CreatureManager(); EventDelegate.StartGame += OnGameStart; }