Exemplo n.º 1
0
    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");
    }
Exemplo n.º 2
0
    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);
    }