示例#1
0
    void Uygula(int index)
    {
        Usul usul = usuller[index];

        sablon.UsulAdı  = usul.name;
        sablon.zaman    = usul.zaman;
        sablon.birim    = usul.birim;
        sablon.vuruslar = usul.vuruslar;
        sablon.Olustur();
    }
示例#2
0
    void Cikar()
    {
        RectTransform tmp = dem;

        dem     = ahir;
        ahir    = tmp;
        demUsul = ahirUsul;
        Rastgele(ahir, false);
        cikarma.ChangeSetState(false);
        cikarma.rectTransform = ahir;
        cikarma.OpenCloseObjectAnimation();
        int kereInt = UnityEngine.Random.Range(1, 4);

        kere.text = kereInt + " kere";
        Invoke("Degistir", (demUsul.zaman * ritim * kereInt) - 0.25f);
        gizleme.OpenCloseObjectAnimation();
    }
示例#3
0
    void Rastgele(RectTransform usl, bool demUsulMu)
    {
        Usul yeni = Usüller[UnityEngine.Random.Range(0, this.Usüller.Length)];

        while (yeni == demUsul || yeni == ahirUsul)
        {
            yeni = Usüller[UnityEngine.Random.Range(0, this.Usüller.Length)];
        }
        if (demUsulMu)
        {
            demUsul = yeni;
        }
        else
        {
            ahirUsul = yeni;
        }

        usl.transform.Find("Resim").GetComponent <Image>().sprite    = yeni.resim;
        usl.transform.Find("Usül").GetComponent <Text>().text        = yeni.name;
        usl.transform.Find("Vurus-Birim").GetComponent <Text>().text = yeni.zaman + "\n" + yeni.birim;
    }