public override void PopulateLoot() { base.PopulateLoot(); for (int i = 0; i < this.inventorySlots; i++) { Item slot = this.inventory.GetSlot(i); if (slot != null) { DroppedItem component = slot.Drop(this.displayNodes[i].transform.position + new Vector3(0f, 0.25f, 0f), Vector3.zero, this.displayNodes[i].transform.rotation).GetComponent <DroppedItem>(); if (component) { base.ReceiveCollisionMessages(false); base.CancelInvoke(new Action(component.IdleDestroy)); Rigidbody componentInChildren = component.GetComponentInChildren <Rigidbody>(); if (componentInChildren) { componentInChildren.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionZ; } } } } }