Example #1
0
    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);
    }
Example #2
0
    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);
    }
Example #3
0
    public void OnDrop()
    {
        isHolding = false;
        GenericInteraction obj = GetCurrent();

        obj.EnableRb();
        obj.SetColliderTrigger(false);
        obj.transform.SetParent(null);
    }
Example #4
0
    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();
    }