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
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