新增volume更新器

This commit is contained in:
2025-12-12 15:54:16 +08:00
parent ddf38a88b6
commit a3ea09c2a9
13 changed files with 158 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
using Demo.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));
}
}
}