Example #1
0
        public float GetMaxWidthHeightValue(UltimateSlot slot)
        {
            float positionValue = UtilityMethod.GetAxisValue(slot.Position, UltimateScrollView.Direction.TopDown),
                  sizeValue     = UtilityMethod.GetAxisValue(slot.slotStat.GetSize(), UltimateScrollView.Direction.TopDown);

            return(positionValue - (sizeValue * 0.5f));
        }
 private void DisableObject(UltimateSlot slot)
 {
     if (slot.isEnable)
     {
         ultimatePooling.RemoveObject(slot.slotObject);
         slot.DisableObj();
     }
 }
        public void AppendObject(UltimateSlotStat ultObject, string custom_id = "")
        {
            var ultiSlot = new UltimateSlot(ultObject, custom_id);

            _slotList.Add(ultiSlot);

            _slotListCount++;

            UpdateElementPos(_slotListCount - 1);
        }