Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Awake()
- {
- byte[] a = new byte[100];
- photonView.RPC("test",PhotonTargets.AllBuffered,a);
- }
- [PunRPC]
- void test(byte[] a)
- {
- Debug.LogError(a.Length);
- }
- public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
- {
- if (stream.isWriting)
- {
- byte[] a = new byte[100];
- stream.SendNext(a);
- }
- else
- {
- byte[] a = (byte[])stream.ReceiveNext();
- Debug.LogError(a.Length);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement