public bool SetBodySlotItem(BodySlotType bodySlotType, Item item) { if (bodySlotsInfo.ContainsKey(bodySlotType)) { AddItem(bodySlotsInfo[bodySlotType]); } bodySlotsInfo[bodySlotType] = item; RemoveItem(item); return(true); }
public bool SetBodySlotItem( BodySlotType bodySlotType, Item item ) { if ( bodySlotsInfo.ContainsKey( bodySlotType ) ) { AddItem( bodySlotsInfo[bodySlotType] ); } bodySlotsInfo[bodySlotType] = item; RemoveItem( item ); return true; }
public Transform[] GetBodySlots(BodySlotType type) { List <Transform> list = new List <Transform>(); foreach (BodySlotType targetType in Enum.GetValues(typeof(BodySlot))) { if (CheckBodySlotType(type, targetType) && m_Slots[targetType] != null) { list.Add(m_Slots[targetType]); } } return(list.ToArray()); }
public Item GetBodySlotItem( BodySlotType bodySlotType ) { return bodySlotsInfo.With( bodySlotType ); }
public Item GetBodySlotItem(BodySlotType bodySlotType) { return(bodySlotsInfo.With(bodySlotType)); }
public Transform GetBodySlot(BodySlotType type) { return(m_Slots[type]); }
public static bool CheckBodySlotType(BodySlotType source, BodySlotType target) { return((source & target) == target); }