2025-12-12 15:54:16 +08:00
|
|
|
using Convention;
|
2025-12-15 17:20:55 +08:00
|
|
|
using Demo.Game.Attr;
|
2025-12-12 15:54:16 +08:00
|
|
|
using System.Collections;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Game
|
|
|
|
|
{
|
|
|
|
|
[Scriptable]
|
|
|
|
|
public class VolumeFloatUpdatement : BaseVolumeUpdatement<float>
|
|
|
|
|
{
|
|
|
|
|
public static VolumeFloatUpdatement Make()
|
|
|
|
|
{
|
|
|
|
|
return new GameObject().AddComponent<VolumeFloatUpdatement>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override float Lerp(float begin, float end, float t)
|
|
|
|
|
{
|
|
|
|
|
return Mathf.Lerp(begin, end, t);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|