Custom Coroutine Script for Unity 3D