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

スクリプト言語

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

HostData.gameName

public var gameName: string;

Description

ゲーム名を返す

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

	function Start() {
		var hostData : HostData[] = MasterServer.PollHostList();
		Debug.Log("Games found: ");
		for(var element : HostData in hostData) {
			Debug.Log(element.gameName);
		}
	}