[Fix] All in one + add dice

This commit is contained in:
2026-02-23 22:24:46 +07:00
parent 4f942cd7c0
commit 2f9e082d75
1593 changed files with 474068 additions and 31 deletions
@@ -0,0 +1,35 @@
using UnityEngine;
namespace AllIn13DShader
{
public class PropertyTween
{
protected int propID;
protected Material mat;
protected float currentValue;
[SerializeField] protected string propertyName;
public virtual void Init(Material mat)
{
this.mat = mat;
propID = Shader.PropertyToID(propertyName);
}
public virtual void Update(float deltaTime)
{
Tween(deltaTime);
UpdateMaterial();
}
protected virtual void Tween(float deltaTime)
{
}
private void UpdateMaterial()
{
mat.SetFloat(propID, currentValue);
}
}
}