how to find which function was called on click in chrome code example Example: what function is called just before the a script is ended c# OnDisable(){}