Say I had an object which will be instantiated. How would I get another script to respond to this event?
To put it into context - I have an automatic gun and I want the gun to recoil on each bullet. How would I do this?
Say I had an object which will be instantiated. How would I get another script to respond to this event?
To put it into context - I have an automatic gun and I want the gun to recoil on each bullet. How would I do this?
You usually do this just right after you instantiate the bullet. The instantiation of a second object has not really something to do with the gun itself.