Ejemplo n.º 1
0
    public override void AfterNote(float lf)
    {
        //The note has ended. set the end states
        durationCircle.fillAmount = 1.0f;

        //animate fading away
        _noteRtf.localScale = Mathf.Lerp(1.0f, 0.0f, lf) * _initScale * 0.9f * Vector3.one;

        if (!_firedAnimation)
        {
            _firedAnimation = true;
            _resultImage.Animate(BeatmapTiming.GetTiming(holdStartNorm, holdEndNorm));
        }
    }
Ejemplo n.º 2
0
    void Update()
    {
        visNote.Interpolate(AudioSettings.dspTime);

        _counter++;
        if (_counter == 5)
        {
            _counter        = 0;
            holdTime.text   = (visNote.holdEnd - visNote.holdStart).ToString();
            holdStart.text  = (visNote.holdStartNorm).ToString();
            holdEnd.text    = (visNote.holdEndNorm).ToString();
            holdTiming.text = BeatmapTiming.GetTimingString(visNote.holdStartNorm, visNote.holdEndNorm);
            holdScore.text  = (BeatmapTiming.GetScore(visNote.holdStartNorm, visNote.holdEndNorm)).ToString();
            if (visNote.isDead)
            {
                holdScore.text  = "|" + holdScore.text + "|";
                holdTiming.text = "|" + holdTiming.text + "|";
            }
        }
    }