Files
PGiZ3/Assets/Code/Gameplay/Character/Controller/AirMovementSystem.cs
T
2026-02-18 20:13:09 +03:00

19 lines
416 B
C#

using UnityEngine;
namespace Code.Gameplay.Character.Controller
{
public class AirMovementSystem
{
private readonly Vector3 _gravity;
public AirMovementSystem(Vector3 gravity)
{
_gravity = gravity;
}
public void UpdateVelocity(ref Vector3 currentVelocity, float deltaTime)
{
currentVelocity += _gravity * deltaTime;
}
}
}