MonoBehaviour.OnServerInitialized 当服务器初始化

function OnServerInitialized () : void

Description描述

Called on the server whenever a Network.InitializeServer was invoked and has completed.

当Network.InitializeServer被调用并完成时,在服务器上调用这个函数。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnServerInitialized() {
		Debug.Log("Server initialized and ready");
	}
}
function OnServerInitialized() {
	Debug.Log ("Server initialized and ready");
}
Page last updated: 2011-1-2