function Awake() {
yield WaitForSeconds(3);
Destroy(gameObject);
Will this code work when attached to gameobjects that after being created, stay around for 3 seconds, and then destroy themselves?
I’m intending to use this on dead bodies that appear in my game.