public override void Initialize() { IScoreManager scoreManager = this.Game.Services.GetService(typeof(IScoreManager)) as IScoreManager; ILivesManager livesManager = this.Game.Services.GetService(typeof(ILivesManager)) as ILivesManager; if (scoreManager == null) { scoreManager = new ScoreManager(this.Game); scoreManager.AddPlayer(this); } else { if (!scoreManager.IsPlayerAlreadyAdded(this)) { scoreManager.AddPlayer(this); } } if (livesManager == null) { livesManager = new LivesManager(this.GameScreen); livesManager.AddPlayer(this); } else { if (!livesManager.IsPlayerAlreadyAdded(this)) { livesManager.AddPlayer(this); } } base.Initialize(); }