Network.connectionTesterPort 连接测试端口

static var connectionTesterPort : int

Description描述

The port of the connection tester used in Network.TestConnection.

用在Network.TestConnection中的连接测试的端口。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void ResetIP() {
		Network.connectionTesterIP = "127.0.0.1";
		Network.connectionTesterPort = 10000;
	}
}
function ResetIP() {
	Network.connectionTesterIP = "127.0.0.1";
	Network.connectionTesterPort = 10000;
}
Page last updated: 2011-4-2