void drink() { mugHolder = coaster.GetComponent <holdMug>(); mug = mugHolder.mug.GetComponent <mugInventory>(); StartCoroutine(wait()); }
void Push() { transform.localPosition = pushedLocation; if (machineScript.holding()) { mugHolder = machineScript.getMug().GetComponent <mugInventory>(); mugHolder.addIngredient(type); liquid.SetActive(true); src.Play(); } }