smartfox unity API
Posted: 16 Oct 2010, 02:34
Hi,
I have an error and i'm unable to find what's causing it.
The error is :
and it hits on :
in the NetworkTransformSender.cs
All seems to work, i see all players and they are able to move and the animation are sent over the server.
Anyone have an idea ?
Eddy.
I have an error and i'm unable to find what's causing it.
The error is :
NullReferenceException: Object reference not set to an instance of an object
NetworkTransformSender.ForceSendTransform () (at Assets/Scripts/NetworkTransformSender.cs:41)
UnityEngine.GameObject:SendMessage(String)
GetVars:ForceSendTransform(SFSObject) (at Assets/Scripts/GetVars.cs:113)
GetVars:OnObjectReceived(SFSObject, User) (at Assets/Scripts/GetVars.cs:94)
SmartFoxClientAPI.SmartFoxClient:_DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:ProcessEventQueue()
GetVars:FixedUpdate() (at Assets/Scripts/GetVars.cs:48)
and it hits on :
Code: Select all
//This method is called when remote user forces us to send our transform
void ForceSendTransform() {
lastState.DoSend();
}
in the NetworkTransformSender.cs
All seems to work, i see all players and they are able to move and the animation are sent over the server.
Anyone have an idea ?
Eddy.