|
Hi, I'm actually working on a project with SmartFoxServer and Unity3D. Here the little snippet: void OnPublicMessage(BaseEvent e) { When I run the project it creates a new gameobject (prefab), but the variable in the script ob this gameobject doesn't change. BTW: The message is "New:Guest#XX" so that script knows that a new player named Guest#XX connected.
(comments are locked)
|
|
oh sorry is the Info.UserName variable: public class InformationSheet : MonoBehaviour { } I also tried with a setter function, but the same problem
(comments are locked)
|
|
I found the problem at my own, it's only possible with a transform instead of the gameobject newPlayer
(comments are locked)
|

Which variable are you having a problem with?
The more specific you are, the better the chances we'll be able to help.