예제 #1
0
    /// <summary>
    /// Pick up an item.
    /// </summary>
    /// <param name="item"></param>
    private void PickUpItem(HeldItem item)
    {
        m_heldItem = item;

        item.PickUp();

        // Set the item's parent.
        item.transform.parent        = HeldItemBone.transform;
        item.transform.localPosition = Vector3.zero;
    }