I'm trying to pass a value from a player script to the camera script, to see if the player had ducked to move the camera. I've tested the bool in the player script and it returned the correct value but when I pass the bool to the camera script it constantly returns false.
but in the cam script it keeps returning false in the update method after i init the variable in the start method.
and the update method constantly shows it as false
If you're calling this "_ducking = GameObject.Find("player").GetComponent().duck;" in start, then you're only getting what the variable is AT Start....
cache the script, then get the variable in update and see how that goes.
Just a quick guess, anyway... never did it like that before (setting the variable with getcomponent at start... I always do it this way and it works)