Esempio n. 1
0
 void Start()
 {
     kalanSure   = 60;
     SureAksinMi = true;
     SonucPaneli.SetActive(false);
     StartCoroutine(SureRoutine());
 }
Esempio n. 2
0
    IEnumerator SureRoutine()
    {
        while (SureAksinMi)
        {
            yield return(new WaitForSeconds(1f));

            if (kalanSure < 10)
            {
                SureText.text = "0" + kalanSure.ToString();
            }
            else
            {
                SureText.text = kalanSure.ToString();
            }
            if (kalanSure <= 0)
            {
                SureAksinMi = false;
                SonucIcinEkranTemizle();
                SonucPaneli.SetActive(true);
            }
            kalanSure--;
        }
    }