Beispiel #1
0
        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            fx = (Audio.AudioFx)Game.Services.GetService(typeof(Audio.AudioFx));
            input = (Input.IManageInput)Game.Services.GetService(typeof(Input.IManageInput));

            base.Initialize();
        }
Beispiel #2
0
        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            input = (Input.IManageInput)Game.Services.GetService(typeof(Input.IManageInput));
            splasher = (Graphics.SplashText)Game.Services.GetService(typeof(Graphics.SplashText));
            audiofx = (Audio.AudioFx)Game.Services.GetService(typeof(Audio.AudioFx));

            base.Initialize();
        }