コード例 #1
0
        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);
        }
コード例 #2
0
        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);
                });
            });
        }