Is there a way to get a value of a variable from a script to onother?

I am making a racing game where you race against the clock, each race being in a different scene. I want the next race to be unlocked after the other and i would need a bool from each races script (which tells if the race has been won or not) into another big script where I collect all the bools. Is there a way to get these bools from the smaller scripts into a one big script?

Always the same way:

Referencing GameObjects, Scripts, variables, fields, methods (anything non-static) in other script instances or GameObjects:

It isn’t always the best idea for everything to access everything else all over the place. For instance, it is BAD for the player to reach into an enemy and reduce his health.

Instead there should be a function you call on the enemy to reduce his health. All the same rules apply for the above steps: the function must be public AND you need a reference to the class instance.

That way the enemy (and only the enemy) has code to reduce his health and simultaneously do anything else, such as kill him or make him reel from the impact, and all that code is centralized in one place.