public void bringToInventory(GameObject inventory) { prepareForBeingTaken(); StartCoroutine(Util_TransformManipulation.smoothMovement(this.gameObject, this.transform.position, inventory.transform.position, 0.1f)); StartCoroutine(Util_TransformManipulation.lerpObjToScale(this.gameObject, new Vector3(0.01f, 0.01f, 0.01f), 1f)); }
public void bringToHand(Transform hand) { prepareForBeingTaken(); this.transform.up = hand.transform.forward; StartCoroutine(Util_TransformManipulation.smoothMovement(this.gameObject, this.transform.position, hand.transform.position, 0.1f)); this.transform.parent = hand; }