Exemple #1
0
    void PrintNewScore(float score, bool flash)
    {
        GetComponent <Text>().text = LocalizedTexts.GetText(LocalizedTexts.Text.Score) + ": " + score.ToString("F1");

        if (flash)
        {
            m_textFlash.FlashText(Color.green);
        }
    }
Exemple #2
0
    void SetText(LocalizedTexts.Text text, bool flash = true)
    {
        m_textComponent.text = LocalizedTexts.GetText(text);

        if (flash)
        {
            m_textFlash.FlashText(Color.black);
        }

        m_currentText = text;
    }
    void AddScore(float score)
    {
        m_textFlash.FlashText(Color.green);

        SetScore(GameData.currentScore + score, GameData.maxScore + 10);
    }
 void FlashText()
 {
     m_textFlash.FlashText(Color.green);
 }