示例#1
0
    public void ApplyScore(int score)
    {
        m_CurrentScore += score;

        UpdateScoreText();

        if (score > 0)
        {
            m_GreenBulb.Flash();
        }
        else
        {
            m_RedBulb.Flash();
        }

        if (OnScoreChanged != null)
        {
            OnScoreChanged();
        }
    }