Network.proxyPassword 代理密码

static var proxyPassword : string

Description描述

Set the proxy server password.

设置代理服务器的密码。

It is possible to make your own custom proxy server. In that case you might want to password protect it and then your Unity players must set this value appropriately.

这可能制作你自己的自定义代理服务器。在这种情况下,你也许想用密码保护它。然后Unity玩家必须正确的设置这个值。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		Network.proxyIP = "1.1.1.1";
		Network.proxyPort = 1111;
		Network.proxyPassword = "secret";
	}
}
function Awake() {
	// Set custom proxy server address and password
	//设置自定义代理服务器地址和密码
	Network.proxyIP = "1.1.1.1";
	Network.proxyPort = 1111;
	Network.proxyPassword = "secret";
}
Page last updated: 2011-4-2