Exemplo n.º 1
0
    private void HandleLongNoteDown(int i)
    {
        float     time      = LongObjs[i].qObj.noteData.Time;
        Judgement judgement = JudgeGap(time - Time.time);

        if (judgement == Judgement.NONE)
        {
            return;
        }

        LongObjs[i].isInLongNote = true;


        LongNoteData longNoteData = LongObjs[i].qObj.noteData as LongNoteData;

        ApplyHealth(healthRecovers[(int)judgement]);
        uICon.JudgeEffect(judgeString[(int)judgement], time - Time.time);

        if (judgement <= Judgement.GREAT)
        {
            LongObjs[i].judgement = judgement;
        }
        else
        {
            LongObjs[i].judgement = Judgement.NICE;
        }

        LongObjs[i].endTime = time + TimeCalc.GetTime(longNoteData.lengthTiming, sheetM);
        for (double ti = longNoteData.timing + 0.25; ti < longNoteData.timing + longNoteData.lengthTiming; ti += 0.25)
        {
            LongObjs[i].tick.Enqueue(TimeCalc.GetTime(ti + WAITTIMING, sheetM) + WAITTIME);
        }


        if (judgement != Judgement.BAD)
        {
            IncreaseCombo();
        }
        else
        {
            ResetCombo();
        }
    }
Exemplo n.º 2
0
 public void SetTime(SheetManager sheetManager)
 {
     Time = TimeCalc.GetTime(timing + GameManager.WAITTIMING, sheetManager) + GameManager.WAITTIME;
 }