Page 1 of 1

AnimationSynchronizer and Island Demo

Posted: 22 Apr 2009, 16:00
by matrix211v1
In the Island Demo, the "localPlayer" gameObject has "AnimationSynchronizer" attached to it.

In that script, there is a function called "void PlayAnimation(string message)".

Where the heck is that being called from? I cannot find any other component calling this function but obviously it's working.

Thanks!

Found it!

Posted: 22 Apr 2009, 16:06
by matrix211v1
It was in the "FPSWalker.js" file.

It seems that the function call "SendMessage" will broadcast a message to all scripts that are listening to it.

Hope this helps someone!