IsLoaclUser
Namespace: SynicSugar.P2P
Class: p2pInfo
public bool IsLoaclUser (UserId targetId)
public bool IsLoaclUser (string targetId)
Description
If target is LocalUser, return true.
NetworkPlayer has this same process in each class, so this is for other classes.
using SynicSugar.P2P;
using UnityEngine;
public class p2pSample : MonoBehaviour {
public void Init(UserId id){
if(!p2pInfo.Instance.IsLoaclUser(id)){
return;
}
}
}