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; } }
private void AllKeyOff() { marioMode = MarioMode.idle; mView.UMode = marioView.UnitMode.Stand; }