示例#1
0
    private void OnNewBlockTouched()
    {
        currentComboCooldown = comboCooldown;

        comboLabel.transform.DOKill(true);
        comboLabel.DOKill(false); //Kill the previous color tween
        // comboLabel.transform.localScale = Vector3.one;
        comboCounter++;
        comboLabel.text = $"COMBO {comboCounter}";

        // comboLabel.transform.DOPunchScale(Vector3.one * .2f, .2f, 1, .1f);

        comboLabel.transform.DOShakePosition(.2f, shakeStrength, shakeVibrato, shakeRandomness, false, false);
        comboLabel.DOColor(comboLabelGradient.Evaluate(comboCounter / 100f), .2f);
    }