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); }
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; } }