Files
Convention-Unity-Demo/Assets/Scripts/Volume/Updatement/VolumeIntUpdatement.cs
2025-12-15 17:20:55 +08:00

20 lines
452 B
C#

using Demo.Game.Attr;
using UnityEngine;
namespace Demo.Game
{
[Scriptable]
public class VolumeIntUpdatement : BaseVolumeUpdatement<int>
{
public static VolumeIntUpdatement Make()
{
return new GameObject().AddComponent<VolumeIntUpdatement>();
}
protected override int Lerp(int begin, int end, float t)
{
return Mathf.FloorToInt(Mathf.Lerp(begin, end, t));
}
}
}