I'm writing a custom action, and I need to reference other variables in the current FSM by name. I've been doing a lot of searching, and it seems like everyone uses something like this:
FsmInt intVariable = this.Fsm.FsmVariables.GetFsmInt("Name");
But when I try that code myself, I get this error:
error CS1061: Type `HutongGames.PlayMaker.Fsm' does not contain a definition for `FsmVariables' and no extension method `FsmVariables' of type `HutongGames.PlayMaker.Fsm' could be found (are you missing a using directive or an assembly reference?)
I'm baffled by this, as a Google for "Fsm.FsmVariables" turns up 328 results. It seems like "Fsm" really
should contain a definition for "FsmVariables", and yet for me it insists that it does not.
Does anyone have any idea what I'm missing?
Thanks!