add project files

This commit is contained in:
Boris Nikolaev
2026-08-14 01:58:31 +03:00
parent 9134cad79b
commit 5f1e94b653
4399 changed files with 12286903 additions and 0 deletions
@@ -0,0 +1,15 @@
using UnityEngine;
public class SwerveXSmoothMover : MonoBehaviour
{
public float smoothTime;
public float maxSpeed;
private float _currentXSpeed;
public void ApplyMove(ref Vector3 pos, float targetX, float speedRatio = 1f)
{
pos.x = Mathf.SmoothDamp(base.transform.localPosition.x, targetX, ref _currentXSpeed, smoothTime, maxSpeed * speedRatio, Time.deltaTime);
}
}