Exemplo n.º 1
0
    private void OnCollisionExit2D(Collision2D other)
    {
        PressurePlate pressurePlate = other.gameObject.GetComponent <PressurePlate>();

        if (pressurePlate != null && pressurePlate.Tangible)
        {
            pressurePlate.Deactivate();
        }
    }