示例#1
0
    private void OnTriggerExit(Collider other)
    {
        Paraqueda pqd = other.GetComponent <Paraqueda>();

        if (pqd != null)
        {
            pqd.drag = oldDrag;
        }
    }
示例#2
0
    private void OnTriggerEnter(Collider other)
    {
        Paraqueda pqd = other.GetComponent <Paraqueda>();

        if (pqd != null)
        {
            oldDrag  = pqd.drag;
            pqd.drag = ventoDirecao;
        }
    }