Пример #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();
        }
Пример #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();
        }
Пример #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();
        }