// Token: 0x060007D0 RID: 2000 RVA: 0x00035B5C File Offset: 0x00033D5C public void Draw() { GUILayout.Space(10f); GUILayout.Label(string.Format("GAME: {0}", Singleton <GameStateController> .Instance.Client.Peer.ServerAddress), new GUILayoutOption[0]); GUILayout.Label(" PeerState: " + Singleton <GameStateController> .Instance.Client.Peer.PeerState, new GUILayoutOption[0]); GUILayout.Label(" InRoom: " + Singleton <GameStateController> .Instance.Client.IsInsideRoom, new GUILayoutOption[0]); GUILayout.Label(" Network Time: " + Singleton <GameStateController> .Instance.Client.Peer.ServerTimeInMilliSeconds, new GUILayoutOption[0]); GUILayout.Label(" KBytes IN: " + ConvertBytes.ToKiloBytes(Singleton <GameStateController> .Instance.Client.Peer.BytesIn).ToString("f2"), new GUILayoutOption[0]); GUILayout.Label(" KBytes OUT: " + ConvertBytes.ToKiloBytes(Singleton <GameStateController> .Instance.Client.Peer.BytesOut).ToString("f2"), new GUILayoutOption[0]); GUILayout.Space(10f); GUILayout.Label(string.Format("COMM: {0}", AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Peer.ServerAddress), new GUILayoutOption[0]); GUILayout.Label(" PeerState: " + AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Peer.PeerState, new GUILayoutOption[0]); GUILayout.Label(" Network Time: " + AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Peer.ServerTimeInMilliSeconds, new GUILayoutOption[0]); GUILayout.Label(" KBytes IN: " + ConvertBytes.ToKiloBytes(AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Peer.BytesIn).ToString("f2"), new GUILayoutOption[0]); GUILayout.Label(" KBytes OUT: " + ConvertBytes.ToKiloBytes(AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Peer.BytesOut).ToString("f2"), new GUILayoutOption[0]); GUILayout.Label("ALL SERVERS", new GUILayoutOption[0]); foreach (PhotonServer photonServer in Singleton <GameServerManager> .Instance.PhotonServerList) { GUILayout.Label(string.Concat(new object[] { " ", photonServer.ConnectionString, " ", photonServer.Latency }), new GUILayoutOption[0]); } }
/// <summary> /// 根据字节数组的格式将文件哈希值转换为字符串表达形式。 /// </summary> /// <returns>根据字节数组的格式将文件哈希值转换得到的字符串表达形式。</returns> /// <exception cref="Exception">获取文件哈希值时出现错误。</exception> public Dictionary <string, string> FormatFileHashes() { switch (this.HashFormat) { case BytesFormat.LowerHex: return(this.HashBytes.ToDictionary( pair => pair.Key, pair => ConvertBytes.ToLowerHexString(pair.Value))); case BytesFormat.UpperHex: return(this.HashBytes.ToDictionary( pair => pair.Key, pair => ConvertBytes.ToUpperHexString(pair.Value))); case BytesFormat.Base64: return(this.HashBytes.ToDictionary( pair => pair.Key, pair => Convert.ToBase64String(pair.Value))); default: return(this.HashBytes.ToDictionary( pair => pair.Key, pair => string.Empty)); } }