void Start() { kalanSure = 60; SureAksinMi = true; SonucPaneli.SetActive(false); StartCoroutine(SureRoutine()); }
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--; } }