言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

HostData.comment

public var comment: string;

Description

コメントを表示する

	// Requests info from the master server and prints
	// the comment of each host

	function Start() {
		var hostData : HostData[] = MasterServer.PollHostList();
		for(var element : HostData in hostData) {
			Debug.Log(element.gameName + " description: " + element.comment + "\n");
		}
	}