public static PhotonServerPacket CreatePacket(PhotonCode code = PhotonCode.OperationResponse) { var packet = new PhotonServerPacket(); packet.Write((byte)code); return(packet); }
public static PhotonClientPacket CreatePacket(PhotonCode code = PhotonCode.OperationRequest) { var packet = new PhotonClientPacket(); packet.Write((byte)code); return(packet); }