Static pool with coroutine waiters.
- No garbage collection.
- No more cached WaitForSeconds.
Paste Waiters.cs file into your Unity Project
//Your code
float _waitTime = 2f;
yield return Waiters.WaitForSeconds(_waitTime);
Static pool with coroutine waiters. No garbage collection. No more cached WaitForSeconds.
C#MIT