MasterServer.OnFailedToConnectToMasterServer 当连接到主服务器错误

function OnFailedToConnectToMasterServer (error : NetworkConnectionError) : void

Description描述

Called on clients or servers when there is a problem connecting to the master server.

在客户端或服务器端调用,连接到主服务器出现问题。

The reason for the error is passed in as a NetworkConnectionError enum.

错误的原因,传递给NetworkConnectionError枚举。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnFailedToConnectToMasterServer(NetworkConnectionError info) {
		Debug.Log("Could not connect to master server: " + info);
	}
}
function OnFailedToConnectToMasterServer(info : NetworkConnectionError) {
	Debug.Log("Could not connect to master server: "+ info);
}
Page last updated: 2011-9-16