Does this if (foveInterface.Gazecast(my_collider)) loop from the sample Unity code only work like a toggle? I am trying to change to the next state in my state machine after the user looks at a gameobject but the program will not move unto the next state because after the if (foveInterface.Gazecast(my_collider)) loop the state toggles back to its original.
I am using this:
if (my_collider.name == "LeftSide")
//print("inside left collider");
result = false;
state = 6;
to change to the next state, but after this loop executes, the state toggles back to the current state
Please sign in to leave a comment.