HostData.gameType 游戏类型

var gameType : string

Description描述

The type of the game (like "MyUniqueGameType")

游戏的类型(像MyUniqueGameType)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
			HostData[] hostData = MasterServer.PollHostList();
			foreach (HostData element in hostData) {
			Debug.Log(element.gameType);
		}
	}
}
// Requests info from the master server and prints
// the gameType of each host
//从master服务器请求信息,并打印每个主机的游戏类型

function Start() {
	var hostData : HostData[] = MasterServer.PollHostList();
	for(var element : HostData in hostData) {
		Debug.Log(element.gameType);
	}
}
Page last updated: 2011-2-24