Example #1
0
 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);
 }
Example #2
0
 //All the transitions here
 public override void DamageTransition(IMarioPowerupStates previousState)
 {
     CurrentState.ExitState();
     CurrentState = new MarioSuperState(Mario);
     CurrentState.Enter(this);
 }