Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();
            if (mAudio == null)
            {
                mAudio = new DefenderAudioEffects(Game);
                Game.Components.Add(Audio);
            }
            if (mInterface == null)
            {
                mInterface = new UserInterface(Game);
                Game.Components.Add(mInterface);
            }

            mAudio.Initialize();
            if (mMusic == null)
            {
                mMusic = new DefenderMusic(Audio.SoundBank, Audio.Engine);
            }

            if (mStatus == null)
            {
                mStatus = new DefenderStatus();
            }
        }
Beispiel #2
0
		public override void Initialize() {
			base.Initialize();
			if (mAudio == null) {
				mAudio = new DefenderAudioEffects(Game);
				Game.Components.Add(Audio);
			}
			if (mInterface == null) {
				mInterface = new UserInterface(Game);
				Game.Components.Add(mInterface);
			}

			mAudio.Initialize();
			if (mMusic == null)
				mMusic = new DefenderMusic(Audio.SoundBank, Audio.Engine);

			if (mStatus == null)
				mStatus = new DefenderStatus();
		}