Ummm…I think this works. It waits interval seconds and then saves any modified assets.
This may not seem like a big deal to you, but frequently prefabs and materials in a Unity 3D project aren’t saved until you either quit Unity or select “Save Project” from the File menu. This script sorta fixes that. This can be important if you’re using version control.