mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
17 lines
331 B
C#
17 lines
331 B
C#
using UnityEngine;
|
|
|
|
namespace QSB.Animation.Player;
|
|
|
|
public class AnimFloatParam
|
|
{
|
|
public float Current { get; private set; }
|
|
public float Target { get; set; }
|
|
|
|
private float _velocity;
|
|
|
|
public float Smooth(float smoothTime)
|
|
{
|
|
Current = Mathf.SmoothDamp(Current, Target, ref _velocity, smoothTime);
|
|
return Current;
|
|
}
|
|
} |