Exemple #1
0
    // Update the pin standing count and last updated time if
    // standingCount has changed.
    private void UpdateStandingCount()
    {
        int currentCount = pinCounter.CountStandingPins();

        if (standingCount != currentCount)
        {
            standingCount           = currentCount;
            standingCountUpdateTime = Time.time;
            standingDisplay.text    = currentCount.ToString();
        }
    }