void Start() { hedef = new butonHedef(); sure = new sayac(); int degerD = hedef.getDogruDeger(); int degerY = hedef.getYanlisDeger(); GameObject.Find("skorDogru").GetComponent <Text> ().text = string.Format("{0,0}", degerD); GameObject.Find("skorYanlis").GetComponent <Text> ().text = string.Format("{0,0}", degerY); SayacText.text = " " + Mathf.RoundToInt(sure.getDakika()).ToString("D2") + ":" + Mathf.RoundToInt(sure.getSaniye()).ToString("D2"); }
void Start() { hedef = new butonHedef(); int degerD = hedef.getDogruDeger(); int degerY = hedef.getYanlisDeger(); GameObject.Find("skorDogru").GetComponent <Text> ().text = string.Format("{0,0}", degerD); GameObject.Find("skorYanlis").GetComponent <Text> ().text = string.Format("{0,0}", degerY); Invoke("animasyonYarat", animasyonBaslangicSuresi); }