public void IncreaseCurrentCount() { currentCount++; ChangeNoodleProgressText(); if (currentCount == expectedCount) { if (bowlCards.Length == 0) { WinPreparation(); return; } SelectNextCard(); ChangeBowl(); int prev = currentCard - 1; if ((currentCard - 1) == -1) { if (bowlCards.Length > 0) { prev = bowlCards.Length - 1; } else { prev = 0; } } BowlCards doneBowlCard = bowlCards[prev].GetComponent <BowlCards>(); doneBowlCard.Done(); PasteAndPlayClip(doneBowl); ChangeDelayAndChance(doneBowlCard.type); spawner.IncreaseSpawnpointsValue(); cardsDone++; cm.speed++; } }