public override void InitializeStates() { // LOAD THE GAME STATES HERE // Use the static class "StateManager" // EXAMPLES: // StateManager.AddState(new YourStateClass("nameOfState")); // StateManager.StateManager.TriggerStateLoad("nameOfState"); // StateManager.ChangeState("nameOfState"); //StateManager.AddState(new GameState("gameState")); StateManager.AddState(new AiBattle("AiBattle")); // The following line calls the "Load" function of your state. // The state must be loaded before you make it the current state. StateManager.TriggerStateLoad("AiBattle"); StateManager.ChangeState("AiBattle"); // Try this state for sprite usage example /*StateManager.AddState(new SpriteState("SpriteState")); * StateManager.TriggerStateLoad("SpriteState"); * StateManager.ChangeState("SpriteState");*/ }