playMaker

Author Topic: add an FSM event listener to gameobject that is downloaded at runtime?  (Read 1012 times)

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
I'm using an avatar system where the figure is downloaded (from URL) at runtime.

This figure gets an animator/controller, and there are animation events (footsteps) inside the animations.

because the avatar can be 'refreshed' while the game is played, the FSMs I would normally attach directly to the figure are moved to a persistent manager object.

What I can't figure out, is:

a) how to 'hear' the animation events off the avatar's Animator, from the persistent manager FSM…

~ or ~

b) how to add an FSM to the avatar at runtime, that sends to the manager when it hears the animation event.

thank you for suggestions.