QueryNATType
Namespace: SynicSugar.P2P
Class: p2pInfo
public async UniTask QueryNATType()
Description
Update local user's NATType to the latest state.
using Cysharp.Threading.Tasks;
using UnityEngine;
using SynicSugar.P2P;
public class p2pSample : MonoBehaviour {
public async UniTask UpdateNatType(){
await p2pInfo.Instance.QueryNATType();
Debug.Log(p2pInfo.Instance.GetNATType());
}
}