コード例 #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
ファイル: UrbanRace.cs プロジェクト: saltares/urbanrace
        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();
        }