Adding reward logic based on laps in Unity code