add animation when component is destroyed react code example Example: On add component unity void Reset() { //Your code here }