> For the complete documentation index, see [llms.txt](https://bennykok.gitbook.io/rhythm-game-starter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bennykok.gitbook.io/rhythm-game-starter/hierarchy-overview/stats-system.md).

# Stats System

Component that handles the score, combo, etc for the game play.

### Overview

![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M76iL7-CNlRUwW2lAqS%2F-M7CwN0cDRDvUNZf7SVH%2F-M7D67Qy9c5ttf6NTEhg%2Fimage.png?alt=media\&token=0b224156-489b-4ca5-86bb-6a4188e38510)

This handles score, combo, max combo, missed, and different levels of note hit.

The threshold is calculated in world space, comparing to the difference between the Track’s LineArea and the note triggered position.

It's also connected to each individual UI object via different `UnityEvent`.
