Пример #1
0
    private void PressKey(char chr)
    {
        char result = machine.PressKey(chr);

        AppendOutputChar(result);

        int keyIndex = EnigmaMachine.CharToIndex(chr);

        if (keyPressRoutines[keyIndex] == null)
        {
            keyPressRoutines[keyIndex] = StartCoroutine(CoPressKey(keyIndex));
        }

        audioSource.PlayOneShot(clickSound);
    }