public Timer RepeatCall(float delay, Action action) { var timer = _baseTimeManager.RepeatCall(delay, action); Logger.Log($"start new repeat timer with delay {delay}. No unscaled deltaTime"); return(timer); }
private void TestRepeat() { var timer = _timeManager.RepeatCall(0.5f, () => { Logger.Log("repeat call"); }); _timeManager.Call(4.0f, () => { timer.Pause(); _timeManager.Call(3.0f, () => { timer.Resume(); _timeManager.Call(3.0f, timer.Stop); }); }); }