public override void NetJoinOrCreateRoomHandler(NetJoinOrCreateRoom data) { base.NetJoinOrCreateRoomHandler(data); if (Client.IsConnectedAndReady) { Client.OpJoinOrCreateRoom(data.RoomId, 0, null); } }
/// <summary> // This method is executed when using this.Publish(new NetJoinOrCreateRoom()) /// </summary> public virtual void NetJoinOrCreateRoomHandler(NetJoinOrCreateRoom data) { // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) }