Ejemplo n.º 1
0
    //Checks if the combined string of normal + diacritic inputs matches what the Bsae Letter of Hiragana is. If so, Instantiates a devanagari there.
    void CheckIfBaseAndDiacriticIsCorrectInput()
    {
        if (s_inputLetter == LetFor_correctKey.S_BaseLetter)
        {
            Debug.Log("That was the correct input!");
            SwitchOffTriggerOnKey();
            ResetAndSwitchOffKeyboard();
            ScrWri_Level.InstantiateSingleDevanagari(LetFor_correctKey);
        }

        else
        {
            {
                ReturnKey();
                b_NormalKeyClicked    = false;
                b_DiacriticKeyClicked = false;
                SwitchOnOffDiacritics(b_NormalKeyClicked);
                SwitchOnRegulars();
                s_inputLetter = null;
                Debug.Log("Wrong input!" + LetFor_correctKey.S_BaseLetter + "!=" + s_inputLetter);
            }
        }
    }