public void ObstacleCleared() { // check that some time has passed, so we don't count as cleared an obstacle we just hit if (Time.time - m_lastObstacleHitTime > 0.1f) { m_currentComboCount++; GameMetrics.UpdateCombo(m_currentComboCount); } GameMetrics.UpdateObstacle(false); }