what function is called just before the a script is ended c#

C#
OnDisable(){}
Source

Also in C#: