protected override void DefaultValues() { base.DefaultValues(); this.maxRotation = MathHelper.ToRadians(20); this.inputManager = WaveServices.Input; this.timerFactory = WaveServices.TimerFactory; this.viewportManager = WaveServices.ViewportManager; this.soundManager = WaveServices.GetService<SoundManager>(); }
/// <summary> /// Performs further custom initialization for this instance. /// </summary> /// <remarks> /// By default this method does nothing. /// </remarks> protected override void Initialize() { base.Initialize(); ////this.scene = (GamePlayScene)this.Owner.Scene; ////this.backScene = WaveServices.ScreenContextManager.FindContextByName("BackContext") //// .FindScene<BackgroundScene>(); this.soundManager = WaveServices.GetService<SoundManager>(); }