Ejemplo n.º 1
0
        private IEnumerator Countdown(int countdown)
        {
            yield return(new WaitForSeconds(0.35f));

            TextObject.text = "Countdown Initiated";
            TextObject.CrossFadeAlpha(1f, 0f, false);
            yield return(new WaitForSeconds(2f));

            do
            {
                TextObject.text = countdown.ToString();
                countdown--;
                yield return(new WaitForSeconds(1f));
            } while (countdown > 0);
            TextObject.CrossFadeAlpha(0f, 1f, false);
            base.gameObject.GetComponent <HealthManager>().Die(0f, AttackTypes.Nail, true);
        }