예제 #1
0
 public void ChangeForm(int form)
 {
     mario.marioState = form;
     mario.state      = new IdleMarioState(mario);
     mario.MarioRun();
 }
예제 #2
0
 public void Run()
 {
     mario.state = new RunningMarioState(mario);
     mario.MarioRun();
 }