public void StopDelayedCall(FDelayedCallback callToRemove) { _delayedCallbacks.Remove(callToRemove); }
public FDelayedCallback StartDelayedCallback(Action func, float delayTime) { if (delayTime <= 0) delayTime = 0.00001f; //super small delay for 0 to avoid divide by 0 errors FDelayedCallback callback = new FDelayedCallback(func, delayTime); _delayedCallbacks.Add(callback); return callback; }