private void Initialize(GtFactory pFactory, GtGameController pGameController) { InitializeProperties(); this.Factory = pFactory; this.GameController = pGameController; this.PlayedNotesAnalyser = Factory.Instantiate <IGtPlayedNotesAnalyser>(this.Factory, pGameController.AudioListener); }
public GtGameRoundController(GtFactory pFactory, GtGameController pGameController) { //All used keys must be initialized to false here KeyPressed = new Dictionary <Keys, bool>(); KeyPressed.Add(Keys.Left, false); KeyPressed.Add(Keys.Right, false); KeyPressed.Add(Keys.Escape, false); Initialize(pFactory, pGameController); }