13 lines
258 B
C#
13 lines
258 B
C#
using UnityEngine;
|
|
|
|
public class SandController : MonoBehaviour
|
|
{
|
|
public Renderer SandRenderer;
|
|
public float Duration = 15;
|
|
|
|
void Update()
|
|
{
|
|
SandRenderer.material.SetFloat("_Progression", Time.timeSinceLevelLoad / Duration);
|
|
}
|
|
}
|