AnimationSynchronizer and Island Demo

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

matrix211v1
Posts: 61
Joined: 16 Jan 2009, 14:48

AnimationSynchronizer and Island Demo

Postby matrix211v1 » 22 Apr 2009, 16:00

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!
matrix211v1
Posts: 61
Joined: 16 Jan 2009, 14:48

Found it!

Postby matrix211v1 » 22 Apr 2009, 16:06

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!

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 20 guests