What is this "Function" called???
I am programming in unity and well.. I needed to call a bool from another script...
The goal: To detect if the boolean named "birdIsAlive" in "BIRBSCRIPT" is true and if so to enable the ESC key for pausing.
The issue is solved, but I can't seem to understand why this works.
"EscapeKeyMechanism" references the "BIRBSCRIPT" via a gameobject with the script attached.
BUT in the "EscapeKeyMechanism" I don't understand why the "if(BirdLife.birdIsAlive)" is able to detect as dot operators can't see booleans.. right..? Or is that not a dot operator..?
Help to understand is appreciated.. I'm super new to C# so... ye thanks! :>
The goal: To detect if the boolean named "birdIsAlive" in "BIRBSCRIPT" is true and if so to enable the ESC key for pausing.
The issue is solved, but I can't seem to understand why this works.
"EscapeKeyMechanism" references the "BIRBSCRIPT" via a gameobject with the script attached.
BUT in the "EscapeKeyMechanism" I don't understand why the "if(BirdLife.birdIsAlive)" is able to detect as dot operators can't see booleans.. right..? Or is that not a dot operator..?
Help to understand is appreciated.. I'm super new to C# so... ye thanks! :>

