I get following console errors when I use SendQuickly instead of Send:
Trying to execute a function 1 on TNObject #16777214 before it has been created.
Trying to execute a function 2 on TNObject #16777214 before it has been created.
failed to convert parameters
LocomotionPlayer.SetRotation (System.Single)
In the Update function I have:
tno.SendQuickly(1, TNet.Target.AllSaved, transform.position);
tno.SendQuickly(2, TNet.Target.AllSaved, speed);
And in the bottom of the same class I have:
[RFC(1)]
void SetPosition(Vector3 val) {
mPosition = val;
}
[RFC(2)]
void SetSpeed(float val) {
mSpeed = val;
}
Everything is running as it should, but I get those errors in the console, which is bothering me. If I change SendQuickly to Send I do not get any errors.
Can anybody please tell me what I'm doing wrong?
Thanks,
Filip