public override void SuperTransition(IMarioPowerupStates previousState) { CurrentState.ExitState(); CurrentState = new MarioSuperState(Mario); CurrentState.Enter(this); Mario.Position = new Vector2(Mario.Position.X, Mario.Position.Y - 24); }
//All the transitions here public override void DamageTransition(IMarioPowerupStates previousState) { CurrentState.ExitState(); CurrentState = new MarioSuperState(Mario); CurrentState.Enter(this); }