Esempio n. 1
0
 /// <summary>
 /// The radar subscribe.
 /// </summary>
 /// <param name="peer">
 /// The photon peer.
 /// </param>
 /// <param name="worldName">
 /// The world Name.
 /// </param>
 public static void RadarSubscribe(PhotonPeer peer, string worldName)
 {
     var data = new Dictionary<byte, object> { { (byte)ParameterCode.WorldName, worldName } };
     peer.OpCustom((byte)OperationCode.RadarSubscribe, data, true, Settings.RadarChannel);
 }
Esempio n. 2
0
 /// <summary>
 /// The counter subscribe.
 /// </summary>
 /// <param name="peer">
 /// The photon peer.
 /// </param>
 /// <param name="receiveInterval">
 /// The receive interval.
 /// </param>
 public static void CounterSubscribe(PhotonPeer peer, int receiveInterval)
 {
     var data = new Dictionary<byte, object> { { (byte)ParameterCode.CounterReceiveInterval, receiveInterval } };
     peer.OpCustom((byte)OperationCode.SubscribeCounter, data, true, Settings.DiagnosticsChannel);
 }