Exemple #1
0
 private void OnForwardTimerElapsed(object sender, EventArgs e)
 {
     _forwardTimer.Reset();
     Backward();
     _state = MoveState.MoveBack;
     _backwardTimer.Start();
 }
Exemple #2
0
 private void OnBackwardTimerElapsed(object sender, EventArgs e)
 {
     _backwardTimer.Reset();
     _state = MoveState.Start;
     CompleteLoop(); //keep running until told to do otherwise.
 }