示例#1
0
文件: Futile.cs 项目: MattRix/Madness
 public void StopDelayedCall(FDelayedCallback callToRemove)
 {
     _delayedCallbacks.Remove(callToRemove);
 }
示例#2
0
文件: Futile.cs 项目: MattRix/Madness
    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;
    }