Beispiel #1
0
    void TryGrabObject(Grabbable grabbable)
    {
        // If there's no target or an ungrabbable target, don't grab
        if (grabbable == null || !grabbable.CanGrab())
        {
            return;
        }

        // Otherwise set this as the grabbed object and set its size
        grabbedObject = grabbable.gameObject;
        //grabbedObjectSize = grabbedObject.GetComponent<Renderer>().bounds.size.magnitude;
    }