Ejemplo n.º 1
0
        /// <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>();

            foreach (var block in this.avaibleBlocks)
            {
                this.Owner.AddChild(block.Entity);
                block.Entity.Enabled = false;
            }

            this.Reset();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SquidBehavior" /> class.
 /// </summary>
 public SquidBehavior()
 {
     this.inputManager = WaveServices.Input;
     this.soundManager = WaveServices.GetService<SoundManager>();
 }