void MoveToPickUpReservePos() { IPickUpContextUIE pickUpContextUIE = this.thisIITAM.GetPickUpContextUIE(); Vector2 reservePos = pickUpContextUIE.GetPickUpReservePosition(); thisItemIcon.SetParentUIE(pickUpContextUIE, true); thisItemIcon.SetLocalPosition(reservePos); }
public void SetUpAsPickedII() { int pickedQuantity = this.CalcPickedQuantity(); IPickUpContextUIE pickUpContextUIE = thisIITAM.GetPickUpContextUIE(); if (this.ShouldCreateLeftoverII(pickedQuantity)) { SetUpLeftoverII(pickedQuantity); } SetUpPickedQuantity(pickedQuantity); thisImage.DetachTo(pickUpContextUIE); this.MoveToPickUpReservePos(); this.SlotOut(); thisItemIcon.StartImageSmoothFollowDragPosition(); }
public void DetachTo(IPickUpContextUIE contextUIE) { IPickUpContextUIAdaptor contextUIA = (IPickUpContextUIAdaptor)contextUIE.GetUIAdaptor(); thisImageTrans.SetParent(contextUIA.GetTransform(), worldPositionStays: true); }