| 1 | using System.Collections; |
| 2 | using System.Collections.Generic; |
| 3 | using UnityEngine; |
| 4 | |
| 5 | public class Flames : MonoBehaviour |
| 6 | { |
| 7 | [SerializeField] private Renderer renderer; |
| 8 | |
| 9 | void Update() |
| 10 | { |
| 11 | renderer.sharedMaterial.mainTextureOffset = new Vector2(0, Random.value * 10); |
| 12 | } |
| 13 | } |