public IEnumerator ArcMotionPickUp(GenericInteraction current) { current.DisableRb(); current.SetColliderTrigger(true); currents.Add(current); current.transform.SetParent(guide.transform); yield return(Motion.ArcPickUp(current.transform, current, .55f)); }
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 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 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(); }