Example #1
0
    void OnTriggerStay()
    {
        if (IsInteracting())
        {
            if (attachedWand.getTriggerDown() && this.GetComponent<Collider>().isTrigger == true)
            {
                Debug.Log("jaha");
                attachedWand.grabbedARObj();
                this.gameObject.GetComponent<Rigidbody>().isKinematic = false;
                this.gameObject.GetComponent<BoxCollider>().isTrigger = false;
                this.gameObject.transform.parent = null;

            }
        }
    }