Network.natFacilitatorPort (Facilitator NAT穿透的端口)

static var natFacilitatorPort : int

Description描述

The port of the NAT punchthrough facilitator.

Facilitator NAT穿透的端口。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void ResetIP() {
		Network.natFacilitatorIP = "127.0.0.1";
		Network.natFacilitatorPort = 10001;
	}
}
function ResetIP() {
	Network.natFacilitatorIP = "127.0.0.1";
	Network.natFacilitatorPort = 10001;
}
Page last updated: 2011-11-7