public IEnumerator OnPutDown(GenericInteraction current) { currents.Remove(current); current.transform.SetParent(null); yield return(Motion.PutDown(current.transform, current.Destination() + current.AddedHeight(), .3f)); current.EnableRb(); current.SetColliderTrigger(false); }
public IEnumerator ArcMotionPutDown(GenericInteraction current) { currents.Remove(current); current.transform.SetParent(null); yield return(Motion.ArcPutDown(current.transform, current, .55f)); current.EnableRb(); current.SetColliderTrigger(false); }
public void OnDrop() { isHolding = false; GenericInteraction obj = GetCurrent(); obj.EnableRb(); obj.SetColliderTrigger(false); obj.transform.SetParent(null); }
public IEnumerator DelayThePhysics(Vector3 pos, GenericInteraction obj) { obj.transform.SetParent(null); yield return(Interaction.Rotate(obj.transform, .1f)); yield return(Interaction.PutDown(obj.transform, pos, .3f)); obj.SetColliderTrigger(false); obj.EnableRb(); }