ResendLastTargetRPC
Namespace: SynicSugar.P2P
Class: ConnectHub
public void ResendLastTargetRPC()
Description
Re-Send RPC to the specific target with last recorded information.
This TargetRPC payload is the same as the last TargetRPC.
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 ResendTargetRPC {
if(p2pInfo.Instance.LastRPCch != (byte)ConnectHub.CHANNELLIST.ImportantSyncProcess){
return;
}
ConnectHub.Instance.ResendLastTargetRPC();
}
}