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

スクリプト言語

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

HostData.playerLimit

public var playerLimit: int;

Description

プレイヤーの最大数を返す

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

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