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); }
private void GameCompleted() { ArduinoHelper.Close(); OnGameOver(); }