/// <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(); }
/// <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(); }