예제 #1
0
        // Update is called once per frame
        void Update()
        {
            GameObject attached = currentAttachedObject;

            if (attached)
            {
                attached.SendMessage("HandAttachedUpdate", this, SendMessageOptions.DontRequireReceiver);
            }

            if (hoveringInteractable)
            {
                hoveringInteractable.SendMessage("HandHoverUpdate", this, SendMessageOptions.DontRequireReceiver);
            }
        }