Beispiel #1
0
    public void CorrectAns(string input)
    {
        string corrAns = input;

        for (int i = 0; i < corAns.Length; i++)
        {
            if (string.Equals(corrAns, corAns[i]))
            {
                Debug.Log(corAns[i]);
                game.nextButton.interactable = true;
            }
            if (string.Equals(corrAns, corAns[corAns.Length - 1]))
            {
                roundOver.ActiveGameState(HUDstate.GameOver);
            }
        }
    }