Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        print("max: " + botoes.Count);
        print("sum: " + count);
        if (selected)
        {
            GetComponent <Text> ().color = new Color(GetComponent <Text> ().color.r, GetComponent <Text> ().color.g, GetComponent <Text> ().color.b, Mathf.PingPong(Time.time, 1));
        }
        else
        {
            GetComponent <Text> ().color = Color.white;
        }

        timer  += Time.deltaTime;
        seconds = Mathf.Floor(timer % 60);
        //fakeColission();

        if (Kouvinte && selected)
        {
            if (Kouvinte.IsSwipeDown())
            {
                print("entrou no clicque");
                fakeClick();
            }
            else if (Kouvinte.IsSwipeLeft())
            {
                nextButton();
            }
            else if (Kouvinte.IsSwipeRight())
            {
                previusButton();
            }
        }
    }