Esempio n. 1
0
 private IEnumerator Count(Action callback)
 {
     _TextPanel.SetIsActive(true);
     for (var i = 0; i < _seconds; i++)
     {
         _Text.text = (_seconds - i).ToString();
         yield return(new WaitForSeconds(1));
     }
     _TextPanel.SetIsActive(false);
     callback?.Invoke();
 }