//корутина отвечает за начало вращения private IEnumerator StartingCoroutine() { startButton.setPassive(); for (int i = 0; i < reels.Count; i++) { reels[i].StartReel(); yield return(new WaitForSeconds(delayList[i])); } yield return(new WaitForSeconds(reels[reels.Count - 1].BoostingTime)); stopButton.SetActive(); yield return(new WaitForSeconds(reels[reels.Count - 1].AnimationTime + reels[reels.Count - 1].StoppingTime - 0.001f)); stopButton.setPassive(); yield return(new WaitForSeconds(0.001f)); startButton.SetActive(); }