コード例 #1
0
    private GameObject getItemAnchor(ItemCarryLocation a_carryLocation)
    {
        switch (a_carryLocation)
        {
        case ItemCarryLocation.Hand:
            return(m_itemAnchor);

        case ItemCarryLocation.In_Front:
            return(m_itemAnchor_front);

        default:
            break;
        }
        return(null);
    }
コード例 #2
0
    private void UpdateCarryAnimation(ItemCarryLocation a_location, bool a_carrrying)
    {
        switch (a_location)
        {
        case ItemCarryLocation.Hand:
            m_animator.SetBool(anim_trigger_carry_hand, a_carrrying);
            break;

        case ItemCarryLocation.In_Front:
            m_animator.SetBool(anim_trigger_carry_front, a_carrrying);
            break;

        default:
            break;
        }
    }