private void DisplayMorseFound(MorseValueWithOrigine morse) { string morseText = TryToGestMorseValue(morse); m_displayCurrentlyTyped.text = morseText; m_displayCurrentlyTypedMorse.text = morse.GetMorseValue().ToString(); m_lastMorseReceived = morse.GetMorseValue(); }
private void CheckForGoodAnswer(MorseValueWithOrigine value) { for (int i = 0; i < m_letterDisplayer.Length; i++) { if (value.GetMorseValue() == m_letterDisplayer[i].GetLinkedMorseValue()) { m_letterDisplayer[i].Reset(); m_scoreDisplay.text = (++m_playerScore).ToString(); } } }
public void AddMorseFound(MorseValueWithOrigine morse) { m_morsesDetected.Add(string.Format("{0}:{1}", morse.GetMorseValue(), morse.GetEmittorName())); if (m_morsesDetected.Count > m_maxDisplay) { m_morsesDetected.RemoveAt(0); } //Bad Code, Should not be call at morse found but I am sleepy. m_detectorCout = MorseDetectorUtilitary.GetDetectorsCount(); }
private string TryToGestMorseValue(MorseValueWithOrigine morse) { return(MorseUtility.GuessValueInClassicMorse(morse.GetMorseValue())); }