void Awake() { interactableObject = GetComponent <VRTK_InteractableObject>(); networkReference = NetworkReference.FromObject(this.gameObject); propKey = PROP_KEY_ID + networkReference.parentHandleId + "$" + (networkReference.pathFromParent != null ? networkReference.pathFromParent : "") + "$"; var dummy = PropertyEventHandler.Instance; }
protected override void Initialise() { base.Initialise(); interactableObject = GetComponent <VRTK_InteractableObject>(); rigidBody = GetComponent <Rigidbody>(); networkReference = NetworkReference.FromObject(this.gameObject); interactableObject.InteractableObjectUngrabbed += objectUngrabbed; }
private void HandleSnappedToDropZone(object sender, SnapDropZoneEventArgs e) { var nref = NetworkReference.FromObject(e.snappedObject); photonView.RPC("SetPanoramaFromObject", PhotonTargets.AllBufferedViaServer, nref.parentHandleId, nref.pathFromParent); }