Exemple #1
0
    private void DrawBlade(float time)
    {
        float cutProgress = TransitionUtils.Progress(0, cutDuration, time);

        if (cutProgress > 0 && cutProgress < 1)
        {
            DrawBlade(firstCutStart, firstCutEnd, cutProgress, false);
        }

        cutProgress = TransitionUtils.Progress(cutDuration + delayBetweenCuts, cutDuration, time);
        if (cutProgress > 0 && cutProgress < 1)
        {
            DrawBlade(secondCutEnd, secondCutStart, 1 - cutProgress, true);
        }
    }