Beispiel #1
0
        /// <summary>
        /// Updates the pointer item with the data from the slot passed in as a parameter.
        /// </summary>
        /// <param name="slot"></param>
        protected virtual void UpdatePointerItem(BaseItemSlot slot)
        {
            if (slot == null)
            {
                pointerSlot.ClearSlot();
                TogglePointer(false);
                return;
            }

            if (slot.ContainsItem)
            {
                pointerSlot.UpdateSlot(slot.ItemInSlot);
                TogglePointer(true);
            }
        }