public StateMachineMif(StateMif CS)
 {
     currentState = CS;
 }
 public override void Execute()
 {
     currentState = currentState.Check ();
     currentState.Execute ();
 }
 public TransitionMif(StateMif nextState, check _cond)
 {
     next = nextState;
     condition = _cond;
 }