Ejemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        Deskodj ds1 = new Deskodj();
        Deskodj ds2 = new Deskodj();
        Deskodj ds3 = new Deskodj();

        Destroy(obj);
        x++;
        txt.text = "шаров в лунке" + " " + x.ToString() + "| 7";


        if (x == 7)
        {
            SceneManager.LoadScene(y);

            x = 0;
        }
    }
Ejemplo n.º 2
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "pit")
        {
            Deskodj ds1 = new Deskodj();

            Destroy(obj);
            x++;
            txt.text = who + " " + x.ToString() + "| " + end;

            if (x == EndScore)
            {
                WinMenu.SetActive(true);

                Money.wallet += 10;
            }
        }
    }