20 lines
452 B
C#
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));
|
|
}
|
|
}
|
|
}
|