public Timer Call(float delay, Action action) { var timer = _baseTimeManager.Call(delay, action); Logger.Log($"start new timer with delay {delay}. No unscaled deltaTime"); return(timer); }
private void TestBase() { var timer = _timeManager.Call(1.0f, () => { Logger.Log("Pause Call"); }); timer.Pause(); _timeManager.Call(1.5f, () => { Logger.Log("call timer"); }); _timeManager.Call(3.0f, () => { Logger.Log("Second Call"); timer.Resume(); }); _timeManager.PauseAll(); _timeManager.Call(1.0f, _timeManager.ResumeAll); }