protected override void OnInitialize() { this.settingsController = Container.Instance.Instantiate <SettingsViewController>(); this.settingsController.Initialize(); this.settingsController.View.Hide(); this.feedbackController = Container.Instance.Instantiate <FeedbackViewController>(); this.feedbackController.Initialize(); this.feedbackController.View.Hide(); View.EnterSettings += ViewOnEnterSettings; View.EnterFeedback += ViewOnEnterFeedback; View.EnterMainMenu += ViewOnEnterMainMenu; View.ExitGame += ViewOnExitGame; }
protected override void OnInitialize() { this.settingsController = Container.Instance.Instantiate <SettingsViewController>(); this.settingsController.Initialize(); this.settingsController.View.Hide(); if (this.characterDataRepository.FindAll().Count == 0) { View.HidePlayButton(); } else { View.ShowPlayButton(); } View.PlayButtonClicked += OnPlayButtonClicked; View.CreateCharacterButtonClicked += OnCreateCharacterButtonClicked; View.SettingsButtonClicked += OnSettingsButtonClicked; View.QuitButtonClicked += OnQuitButtonClicked; }