Receiving events
Options
Hello,
For a turnbased unity game, am I correct that:
client.OpRaiseEvent(eventCode, evData, sendReliable, RaiseEventOptions.Default);
will send my event to other clients? If not, what should I be using?
If the above is correct, how do I receive the event, and on which script do I include the method?
I am using:
public void OnEvent(byte eventcode, object content, int senderid) on the same script the opRaiseEvent is on.
So far, I can get two clients to successfully join the same room, but they are not able to pass events using the above.
Thanks.
For a turnbased unity game, am I correct that:
client.OpRaiseEvent(eventCode, evData, sendReliable, RaiseEventOptions.Default);
will send my event to other clients? If not, what should I be using?
If the above is correct, how do I receive the event, and on which script do I include the method?
I am using:
public void OnEvent(byte eventcode, object content, int senderid) on the same script the opRaiseEvent is on.
So far, I can get two clients to successfully join the same room, but they are not able to pass events using the above.
Thanks.
0
Comments
-
Hi,
Replied to your mail to support with same question.0