예제 #1
0
        private IEnumerator Stopwatch()
        {
            while (true)
            {
                yield return(new WaitForSeconds(1));

                _secondsPassedCount++;

                Debug.Log("Second is passed.");

                SecondPassed.Invoke(SecondsPassedCount);
            }
        }
예제 #2
0
 private void NotifySecondObservers()
 {
     SecondPassed?.Invoke(totalSeconds);
 }