[Fix] All in one + add dice
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[System.Serializable]
|
||||
public class PropertyTweenSinWave : PropertyTween
|
||||
{
|
||||
[Header("Configuration")]
|
||||
public float minValue;
|
||||
public float maxValue;
|
||||
public float speed;
|
||||
|
||||
protected override void Tween(float deltaTime)
|
||||
{
|
||||
float sin01 = (Mathf.Sin(Time.time * speed) + 1f) * 0.5f;
|
||||
currentValue = Mathf.Lerp(minValue, maxValue, sin01);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user