I am attempting to reference a variable from another script inside the MouseLook script on the first person controller. The problem i am having is that everytiem i do this it says The Name does not exist in the current context. The name of the script I am trying to acces is called MakeKeypad. they are both global variables. Could it have something to do with the objects they are attatched to? Mouse look is attatched to the first person controller and the MakeKeypad is attatched to a collider on the map.
the boolean i am tryign to reference is public static bool keypadUp = false; and inside the mouse look script i have public bool keypadUp = MakeKeypad.keypadUp;