Пример #1
0
    void DoneDrinking()
    {
        GameObject  emptybottleobject = (GameObject)Instantiate(emptybottle, transform.position + Offset, Quaternion.identity);
        EmptyBottle emptybottlescript = emptybottleobject.GetComponent <EmptyBottle>();

        emptybottlescript.lane           = lane;
        HighscoreScript.instance.points += 10;
        Donedrinking = false;
    }
Пример #2
0
    public void AddEmptyBottle()
    {
        EmptyBottle emptybottle = (EmptyBottle)Instantiate(items[2]);

        AddItem(emptybottle);
    }