Exemple #1
0
 private void ActionIdleInput()
 {
     // 左キーを押している
     if (0 != (LeftKey & keyInputMode))
     {
         marioMode       = MarioMode.Move;
         mView.Direction = marioView.DirectionLeft;
         mView.UMode     = marioView.UnitMode.Walk;
     }
     //右キーを押している
     if (0 != (RightKey & keyInputMode))
     {
         marioMode       = MarioMode.Move;
         mView.Direction = marioView.DirectionRight;
         mView.UMode     = marioView.UnitMode.Walk;
     }
 }
Exemple #2
0
 private void AllKeyOff()
 {
     marioMode   = MarioMode.idle;
     mView.UMode = marioView.UnitMode.Stand;
 }