I actually don’t know why this script isn’t working. I got help & fixed it up. But once the WaitForSeconds code line comes into affect, nothing happens the script just stops. Here is the script. Any help would be nice.
P.S: There are no errors in the console!
P.S: Print(“Work1”); & Print(“Work2”); appear in the console.
your code looks fine, but if you want to destroy after some delay why dont you use
Destroy(collision.gameObject, delay);
What is your delay variable set to? I can’t see where you set a value for it?