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; }
public void AddEmptyBottle() { EmptyBottle emptybottle = (EmptyBottle)Instantiate(items[2]); AddItem(emptybottle); }