Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

[Photon] OnEvent() not getting event from OpRaiseEvent

$
0
0
I'm using LoadBalancingClient, and my class derives IPhotonPeerListener.

I wait till ConnectToRegionMaster, OpJoinLobby and OpJoinOrCreateRoom are true.
And they are, I'm using Debug.Log to check.
Service() is on Update().

Then once client is connected to Server/Lobby/Room,
I use this (on Update()):

if (Input.GetKeyDown(KeyCode.B))
{
RaiseEventOptions r = new RaiseEventOptions();
r.Receivers = ReceiverGroup.All;
client.OpRaiseEvent((byte)1, new HashTable(), true, r);
}

But pressing B...

[Photon] OnEvent() not getting event from OpRaiseEvent

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>