Ejemplo n.º 1
0
    public void PhraseDragged()
    {
        if (cursorHandler.PhraseToDrag == 0)
        {
            return;
        }

        string toInsert = "<color=\"red\"> " + phraseConverter.GeneratePhrase(cursorHandler.PhraseToDrag) + "</color> ";

        text.text      = text.text.Replace(toReplace, toInsert);
        toReplace      = toInsert;
        PhraseInserted = true;

        gameState.CurrentDayLetters[boxIn.CurrentLetter - 1].ChosenKey = cursorHandler.PhraseToDrag;
    }