示例#1
0
    // Update is called once per frame
    void Update()
    {
        if (_accumulatingHitScore)
        {
            _accumulatingHitScoreTimecount += Time.deltaTime;

            if (_accumulatingHitScoreTimecount > _cutoffTime)
            {
                _accumulatingHitScore = false;
//				print ("_accumulatedHitScore " + _accumulatedHitScore);
                _scoreList.StopShowScore(ScoreText.ScoreType.Hit);
            }
        }

        if (_accumulatingKillScore)
        {
            _accumulatingKillScoreTimecount += Time.deltaTime;

            if (_accumulatingKillScoreTimecount > _cutoffTime)
            {
                _accumulatingKillScore = false;
//				print ("_accumulatedKillScore " + _accumulatedKillScore);
                _scoreList.StopShowScore(ScoreText.ScoreType.Kill);
            }
        }
    }