Join event actor properties?
Options
oneiro
✭
I am using Unity. I modified the LiteGame example in Peer:
public void Join()
{
lock (this)
{
this.peer.OpJoin(this.gameID, null, new Hashtable { { (byte)100, "Oneiro" } }, true);
}
}
How do I retrieve the "Oneiro" value from the Join event? In EventAction, I tried:
Hashtable properties = (Hashtable)photonEvent[(byte)LiteEventKey.Properties];
but 'properties' var is null. At this line, I get: NullReferenceException: Object reference not set to an instance of an object
What am I doing wrong?
public void Join()
{
lock (this)
{
this.peer.OpJoin(this.gameID, null, new Hashtable { { (byte)100, "Oneiro" } }, true);
}
}
How do I retrieve the "Oneiro" value from the Join event? In EventAction, I tried:
Hashtable properties = (Hashtable)photonEvent[(byte)LiteEventKey.Properties];
but 'properties' var is null. At this line, I get: NullReferenceException: Object reference not set to an instance of an object
What am I doing wrong?
0