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;
 }
Beispiel #2
0
    protected override void Initialise()
    {
        base.Initialise();

        interactableObject = GetComponent <VRTK_InteractableObject>();
        rigidBody          = GetComponent <Rigidbody>();

        networkReference = NetworkReference.FromObject(this.gameObject);

        interactableObject.InteractableObjectUngrabbed += objectUngrabbed;
    }
Beispiel #3
0
        private void HandleSnappedToDropZone(object sender, SnapDropZoneEventArgs e)
        {
            var nref = NetworkReference.FromObject(e.snappedObject);

            photonView.RPC("SetPanoramaFromObject", PhotonTargets.AllBufferedViaServer, nref.parentHandleId, nref.pathFromParent);
        }