19 lines
416 B
C#
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;
|
|
}
|
|
}
|
|
} |