GameObject.networkView 网络视图

var networkView : NetworkView

Description描述

The NetworkView attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的网络视图(只读)。(如果没有则为空)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GameObject other;
	public void Awake() {
		other.networkView.RPC("MyFunction", RPCMode.All, "someValue");
	}
}
var other : GameObject;
other.networkView.RPC("MyFunction", RPCMode.All, "someValue");
Page last updated: 2010-12-13