IEnumerator StartChopperTimer() { curChoppingTime = chopTime; isChopping = true; do { curChoppingTime--; yield return(new WaitForSeconds(1)); } while (curChoppingTime > 0); isChopping = false; lastChopper.currentItems.Add(currentItems[0]); uiManager.AddItemInChopper(lastChopperNumber, currentItems[0]); currentItems.RemoveAt(0); uiManager.RemoveItem((int)thisPlayer + 1, 1); yield return(null); }