public void CevabiKontrolEt(int KullaniciCevabi) { IkonlariKapat(); if (KullaniciCevabi == DogruCevap) { dogruSayisi++; DogruIkonu.GetComponent <RectTransform>().DOScale(1f, 0.1f).SetEase(Ease.InBack); Puan += 10; } else { yanlisSayisi++; YanlisIkonu.GetComponent <RectTransform>().DOScale(1f, 0.1f).SetEase(Ease.InBack); } DogruSayisiText.text = dogruSayisi.ToString() + " DOGRU"; YanlisSayisiText.text = yanlisSayisi.ToString() + " YANLÄ°S"; PuanText.text = Puan.ToString() + " PUAN"; SoruyuSor(); }
void IkonlariKapat() { DogruIkonu.GetComponent <RectTransform>().localScale = Vector3.zero; YanlisIkonu.GetComponent <RectTransform>().localScale = Vector3.zero; }