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