示例#1
0
    protected override void Hold()
    {
        base.Hold();
        if (isDead)
        {
            return;
        }

        //don't animate if it isn't time
        if ((_lerpTime < 0) || (holdEndNorm > 1))
        {
            return;
        }

        //animate note holding
        pressDurationCircle.SetFill(holdDuration / _note.duration);
        _noteRtf.localScale = _initScale * Vector3.one * Mathf.Lerp(1, 0.9f, holdDuration / _note.duration);
    }