3839404142434445464748
} private void manageCumulativeSpeed(Direction dir) { Pad pad = Pad.getInstance(); if (lastDirection == dir) { pad.increaseCumulativeSpeed(); } else { pad.resetCumulativeSpeed(); lastDirection = dir; } }