Example #1
0
    IEnumerator grabPickedObjectCoroutine()
    {
        yield return(new WaitForEndOfFrame());

        heldPickable.PickFunction();
        heldPickable.root.transform.SetParent(pickHandle);
        heldPickable.root.transform.rotation = pickHandle.rotation;
        heldPickable.root.transform.position = pickHandle.position + (heldPickable.root.transform.position - heldPickable.pickHandle.transform.position);
    }