Temporary Disable Button

Does anyone know how to temporarily disable a button? So like onRelease, it plays animation, and the button is disabled for maybe 20 seconds and after 20 seconds, the button is functional again. Thanks!