How do I reference to a boolean in another script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By brandon204moore

I’m trying to reference a boolean in another script. I want use the boolean to make the ground start moving after you have made the player jump. It will be set false when the script is initialized and when you jump it sets to true.

:bust_in_silhouette: Reply From: Skipperro

This is how to do a global variable via Singleton: