Пример #1
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     InitAppParam();
     InitGameData();
     ArduinoHelper.Connect();
     for (var i = 0; i < 12; i++)
     {
         ArduinoHelper.ShowLed2(0, i);
     }
     ArduinoHelper.ShowLed3(0, Led3Type.Temperature);
     ArduinoHelper.ShowLed3(0, Led3Type.Time);
     Task.Factory.StartNew(GameLogic);
 }
Пример #2
0
 private void GameCompleted()
 {
     ArduinoHelper.Close();
     OnGameOver();
 }