public virtual bool TryPickUp(AttachmentCarrier attachmentCarrier) { if (IsCarried) { return(false); } IsCarried = true; transform.parent = attachmentCarrier.transform; transform.localPosition = Vector3.zero; return(true); }
public bool TryPickUp(AttachmentCarrier attachmentCarrier) { if (IsCarried) { return(false); } foreach (var attachable in attachables) { attachable.OnDetach(); } attachedTo.attachedThing = null; attachedTo = null; transform.parent = attachmentCarrier.transform; transform.localPosition = Vector3.zero; return(true); }
public abstract bool TryPutDown(AttachmentCarrier attachmentCarrier);