private IEnumerator IELaunchIt(float count, float deltaTime, Actions.VoidInt func, Actions.VoidVoid onEnd) { for (int i = 0; i < count; i++) { func(i); yield return(new WaitForSeconds(deltaTime)); } onEnd(); }
private void _LanunchIt(float count, float deltaTime, Actions.VoidInt func, Actions.VoidVoid onEnd) { StartCoroutine(IELaunchIt(count, deltaTime, func, onEnd)); }
public static void LaunchIt(float count, float deltaTime, Actions.VoidInt func, Actions.VoidVoid onEnd = null) { instance._LanunchIt(count, deltaTime, func, onEnd == null ? () => { } : onEnd); }