LazyBot/Assets/Scripts/Entity/EntityController.cs
/// <summary>
/// Runs custom method after delay.
/// </summary>
/// <param name="method">Custom method.</param>
/// <param name="waitSeconds">Delay.</param>
Runs custom method after delay.
Runs custom method after delay .
protected IEnumerator RunLaterCoroutine(System.Action method, float waitSeconds)
        {
            yield return new WaitForSeconds(waitSeconds);
            method();
        }
protected IEnumerator RunLaterCoroutine ( System . Action method , float waitSeconds ) { yield return new WaitForSeconds ( waitSeconds ) ; method ( ) ; }
Runs custom method after delay.
Runs custom method after delay .
method
System.Action
None
waitSeconds
float
None