private void Update() { if (Time.time >= cooldown) { comboIndex += 1; if (comboIndex >= currentCombo.Length) { if (currentCombo == idleCombo) { currentCombo = RandomCombo(); } else { currentCombo = idleCombo; } comboIndex = 0; } UpdateCooldown(); } controller.OnComputerMove(currentCombo[comboIndex]); }