Hi there This is a pretty dumb question but I'm having a problem with something
I'm trying to use script to check if an AC variable is true or false and then run something depending on the answer. I have the script in a gameobject.
I'm using Object: Call Object, in a file called testcheck.cs, but my function doesn't come up as an option under testcheck or GameObject;
void testcheck()
{
if (AC.LocalVariables.GetBooleanValue (13) == true)
{
print("it's true");
//code here
}
else if (AC.LocalVariables.GetBooleanValue (13) == false)
{
print("it's false");
//code here
}
}
Any idea what's happening? Thank you
Comments
public void testcheck()