示例#1
0
        private void Start()
        {
            CountDownTween = DOVirtual.Int(_seconds, 0, _seconds, (count) =>
            {
                _text.text = count.ToString();

                if (count == 0)
                {
                    _onTimerEnd?.Invoke();
                }
            }).SetEase(Ease.Linear).SetDelay(_initialDelay);
        }