On add component unity code example Example: On add component unity void Reset() { //Your code here }