Esempio n. 1
0
    void ApplySlows()
    {
        playerMotor.ResetGravity();
        playerMotor.RemoveForce("jump");

        playerMotor.AddSlow(new Slow("teleportslow", Vector2.one * -1, SlowType.Input));
        playerMotor.AddSlow(new Slow("teleportslow_grav", Vector2.one * -0.70f, SlowType.Gravity));
    }