public void OnBalloonPopped(Balloon balloon) { AudioManager.PlayShiftedClip(SoundClip.BALLOON_POP); balloon.TriggerPopAnimation(); // Handle score and timer // If Balloon is correct if (balloon.GetColor() == instance.currentDisplayColor) { instance.modifyTimer(instance.timeIncrementPerRightBalloon); instance.currentTimerDecrement += instance.timerDecrementIncreasePerBalloon; instance.incrementScore(); GameplayMenuManager.DisplayNotification(NotificationType.RIGHT); } // If Balloon is not correct else { instance.modifyTimer(-instance.timeDecrementPerWrongBalloon * Time.deltaTime); GameplayMenuManager.DisplayNotification(NotificationType.WRONG); } // Setup next balloon instance.resetBalloonColors(); }