public static IEnumerator ZoneHandler2(ZRpc rpc) { rpc.Invoke("ZoneHandler", new object[] { ZoneHandler.Serialize(rpc.GetSocket().GetHostName()) }); yield return(new WaitForSeconds(1)); }
public static IEnumerator SendAllUpdate() { foreach (var p in ZNet.instance.m_peers) { string SteamID = p.m_socket.GetHostName(); ZRoutedRpc.instance.InvokeRoutedRPC(p.m_uid, "ZoneHandler", new object[] { ZoneHandler.Serialize(SteamID) }); } yield return(new WaitForSeconds(1)); }