#okay
1 messages · Page 1 of 1 (latest)
can't see GroundCheck() being executed anywhere.
Post All the code.
I see a problem, brb 1min
inside your GroundCheck method
you define string StandingOn
however, this is not the same as setting the value of your class' variable
public string StandingOn;
when you define a variable within a call inside the class, it is not a variable field of the class, but a local variable of that method.
Do you see how the issue can be resolved?
global?
global string StandingOn
no
C, C++ and C# are different languages
when you say Remove from the Class
method*
no
hmpf
private int variableField;
private void myMethod()
{
int localVariable = 0;
}
local variables must be initialized with a value
not at all the point, however
i see
these are two different Levels of variables
yes, precisely
i have initialized global string StandingOn = "None" at the start of ThirdPersonCharacterController though
OH
The global string is different from the local string