Exemplo n.º 1
0
    /// <summary>
    /// Empties the player's hand, dropping whatever they are currently holding
    /// </summary>
    /// <param name="p_objectUsed"></param>
    public void EmptyHand(bool p_objectUsed, bool p_discardItem = true)
    {
        SetHoldingSandwhichState(false);
        m_heldObjectTrasform.parent = null;
        if (p_discardItem)
        {
            if (p_objectUsed)
            {
                m_holdableObject.UseObject();
            }
            else
            {
                m_holdableObject.DropObject();
            }
        }

        m_holdableObject     = null;
        m_heldObjectTrasform = null;
    }