Method like Awake(), but for destroying an object?

Awake() is called when a script is being loaded. Is there a similar method for when a script is being unloaded or disabled? Or some other way that your script can know it’s being unloaded? Should I just use a destructor?

There’s MonoBehavior.OnDestroy()

You can also use OnDisable and OnEnable for information about an object being enabled and disabled in addition to OnDestroy().