Exemplo n.º 1
0
 private IEnumerator HostGame()
 {
     while (!socket.IsConnected || socket.IsInvoking())
     {
         Debug.Log("Waiting...");
         yield return(new WaitForSeconds(1));
     }
     socket.Emit("host", HostCallback);
 }