MonoBehaviour.OnDisconnectedFromServer 当从服务器断开连接

function OnDisconnectedFromServer (mode : NetworkDisconnection) : void

Description描述

Called on the client when the connection was lost or you disconnected from the server.

当失去连接或从服务器端断开时在客户端调用。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnDisconnectedFromServer(NetworkDisconnection info) {
		Debug.Log("Disconnected from server: " + info);
	}
}
function OnDisconnectedFromServer (info : NetworkDisconnection) {
	Debug.Log("Disconnected from server: " + info);
}
Page last updated: 2011-1-2