Beispiel #1
0
        protected override void LoadContent()
        {
            // Audio
            audioEngine = new AudioEngine("Content\\Audio\\GameAudio.xgs");
            waveBank    = new WaveBank(audioEngine, "Content\\Audio\\Wave Bank.xwb");
            soundBank   = new SoundBank(audioEngine, "Content\\Audio\\Sound Bank.xsb");

            // Current state
            currentState.load();
        }
Beispiel #2
0
        public void changeState(State.Type type)
        {
            // Unload current state's content
            currentState.unload();

            // Assign new current state
            currentState = states[type];

            // Load next state's content
            currentState.load();
        }
Beispiel #3
0
        public void changeState(State.Type type)
        {
            // Unload current state's content
            currentState.unload();

            // Assign new current state
            currentState = states[type];

            // Load next state's content
            currentState.load();
        }