2025-12-15 17:20:55 +08:00
|
|
|
using Demo.Game.Attr;
|
2025-12-12 15:54:16 +08:00
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|