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