SlowUpdate

This class provides ability to call some repeatable logics with certain period of time.

Basically, it creates coroutine inside given MonoBehaviour.

Example of usage:

private SlowUpdate slowUpdate;

private void Start()
{
    // Call our logics every 10 seconds
    slowUpdate = new SlowUpdate(this, MyLogics, 10f);
    slowUpdate.Run();
}

private void MyLogics()
{
    Debug.Log("Hello there!");
}

Last updated