MonoBehaviour
- Awake
- CancelInvoke
- FixedUpdate
- InvokeRepeating
- Invoke
- IsInvoking
- LateUpdate
- OnApplicationFocus
- OnApplicationPause
- OnApplicationQuit
- OnBecameInvisible
- OnBecameVisible
- OnCollisionEnter
- OnCollisionExit
- OnCollisionStay
- OnConnectedToServer
- OnControllerColliderHit
- OnDestroy
- OnDisable
- OnDisconnectedFromServer
- OnDrawGizmosSelected
- OnDrawGizmos
- OnEnable
- OnFailedToConnectToM...
- OnFailedToConnect
- OnGUI
- OnJointBreak
- OnLevelWasLoaded
- OnMasterServerEvent
- OnMouseDown
- OnMouseDrag
- OnMouseEnter
- OnMouseExit
- OnMouseOver
- OnMouseUpAsButton
- OnMouseUp
- OnNetworkInstantiate
- OnParticleCollision
- OnPlayerConnected
- OnPlayerDisconnected
- OnPostRender
- OnPreCull
- OnPreRender
- OnRenderImage
- OnRenderObject
- OnSerializeNetworkView
- OnServerInitialized
- OnTriggerEnter
- OnTriggerExit
- OnTriggerStay
- OnWillRenderObject
- Reset
- StartCoroutine
- Start
- StopAllCoroutines
- StopCoroutine
- Update
- useGUILayout
MonoBehaviour.OnFailedToConnectToMasterServer 当连接到主服务器失败
function OnFailedToConnectToMasterServer (error : NetworkConnectionError) : void
Description描述
Called on clients or servers when there is a problem connecting to the MasterServer.
当连接主服务器出现问题时在客户端或服务器端调用.
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);
}
最后修改:2011年1月2日 Sunday 18:42