public void SwitchNextItem() { if (isActive) { OnSwitchNext.Invoke(); StartCoroutine(WaitTiming()); items[currentLvl].RemoveGlow(); currentLvl = currentLvl == items.Length - 1 ? 0 : currentLvl + 1; items[currentLvl].AddGlow(); playBtn.CheckAviable(items[currentLvl] .GetComponent <AviableCheck>() .isAviable, currentLvl); } }