I'm trying to figure out how to get a transform variable stored in an ArrayList on a script into playmaker.
The script has an ArrayList with a queue of tokens (for a puzzle game). I want to call a function on the script that pops off the top token from the queue and returns it's transform to playmaker so that it can position it correctly.
The problem is, I can't figure out how to get a returned transform into Playmaker.
SendMessage doesn't allow for a return type or seem to work with passing in a transform by reference (using out) I figured I could call the Send Message function and pass in the calling gameObject with the playmaker FSM attached... and have the script set the Transform FSMVariable... except I can't see a way to have Playmaker pass "self" into Send message.
How do I set a Game Object FSM Variable to "self" so I can pass to the script?