Esempio n. 1
0
    //Hints handler
    private void UseHint(int index)
    {
        if (StaticBehaviors.EnoughCoinsForHint(index))
        {
            switch (index)
            {
            case 0:
                StaticBehaviors.RevealOneLetter(letterFieldsList, letterList, LevelManager.rightAnswerList);
                break;

            case 1:
                StaticBehaviors.RemoveWrongLetters(letterFieldsList, letterList, LevelManager.rightAnswerList);
                break;

            case 2:
                StaticBehaviors.SolveTask(letterFieldsList, letterList, LevelManager.rightAnswerList);
                break;
            }
            HintEvent(index, null);
            hintsPopup.gameObject.SetActive(false);
        }
    }