ResendLastRPC
Namespace: SynicSugar.P2P
Class: ConnectHub
public void ResendLastRPC()
Description
Re-Send RPC to All connection peers with last recorded information.
This RPC payload is the same as the last RPC.
To send disconnected peers after some time. SynicSugar retransmit to connecting-peers like TCP.
To record, pass true to attribute.
using SynicSugar.P2P;
using UnityEngine;
public class p2pSample : MonoBehaviour {
public void ResendRPC() {
if(p2pInfo.Instance.LastRPCch != (byte)ConnectHub.CHANNELLIST.ImportantSyncProcess){
return;
}
ConnectHub.Instance.ResendLastRPC();
}
}