Example #1
0
    public override void SendData(int connectionId, TransportEvent.Type type, byte[] data)
    {
        RaiseEventOptions options = new RaiseEventOptions()
        {
            TargetActors = new int[] { connectionId }
        };

        PhotonNetwork.RaiseEvent((byte)type, data, options, SendOptions.SendUnreliable);
    }
Example #2
0
    public override void SendData(int connectionId, TransportEvent.Type type, byte[] data)
    {
        RaiseEventOptions options = new RaiseEventOptions()
        {
            Receivers = ReceiverGroup.MasterClient
        };

        PhotonNetwork.RaiseEvent((byte)type, data, options, SendOptions.SendUnreliable);
    }
Example #3
0
 public abstract void SendData(int connectionId, TransportEvent.Type type, byte[] data);