✅ Variable access help :(
I have an object named player and I'm trying to access a variable, an int, called speed and I've been told to use "GetComponent" although when I use it I'm a tad bit confused on how to access the variable?
"speed = player.GetComponent<speed>();" is what I tried which didn't work.
"speed = player.GetComponent<speed>();" is what I tried which didn't work.
