Esempio n. 1
0
    // method: stop the current sweep, if any //
    private void stopSweep()
    {
        SkiingSettings.singleton.heldVersusToggled = false;
        if (togglesSkiing)
        {
            Skier.disableSkiing();
        }

        potentialCurrentTargetPosition = null;

        if (zeroVelocitiesAfter)
        {
            MoonMotionPlayer.zeroVelocities();
        }
    }
Esempio n. 2
0
    // method: stop the current dash, if any //
    private void stopDash()
    {
        SkiingSettings.singleton.heldVersusToggled = false;
        if (togglesSkiing)
        {
            Skier.disableSkiing();
        }

        potentialCurrentTargetPosition = null;

        if (temporarilyLockYPosition)
        {
            MoonMotionPlayer.setPositionYLockednessTo(lastYPositionLockednessBeforeDashing);
        }

        if (zeroVelocitiesAfter)
        {
            MoonMotionPlayer.zeroVelocities();
        }
    }