반응형 핑1 반응형 [Unity] 유니티에서 Ping 체크 하는 방법 유니티는 Ping 체크를 위해 UnityEngine:Ping 클래스를 제공한다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 using System.Net; public void CheckPing(string address) { StartCoroutine(StartPing(address)); } IEnumerator StartPing(string adress) { WaitForSeconds f = new WaitForSeconds(0.05f); Ping p = new Ping(adress); while (p.isDone == false) { yield return f; } PingFinished(p); } public void PingFinishe.. 2019. 8. 30. 이전 1 다음