IEnumerator DepleteDrink(float delay) { yield return(new WaitForSeconds(delay)); PourSimulator pourSimulator = GetComponentInChildren <PourSimulator>(); pourSimulator.Empty(); FindObjectOfType <AudioController>().gulp.Play(); }
public void ShrinkLiquid() { PourSimulator liquid = GetComponentInChildren <PourSimulator>(); liquid.Empty(); }