Skip to content

Commit be3c668

Browse files
Fix particle system not playing
1 parent fc80b91 commit be3c668

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WeatherMod/WeatherMod/Mono/WaterDropsOnScreen.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ namespace WeatherMod.Mono;
66
public class WaterDropsOnScreen : MonoBehaviour
77
{
88
private ParticleSystem _particleSystem;
9-
private Material _material;
9+
// private Material _material;
1010
private float _lastRateOverTime;
1111

1212
private void Awake()
1313
{
1414
_particleSystem = GetComponent<ParticleSystem>();
15-
_material = GetComponent<Renderer>().material;
15+
_particleSystem.Play();
16+
// _material = GetComponent<Renderer>().material;
1617

1718
_lastRateOverTime = GetRateOverTime();
1819
SetRateOverTime(_lastRateOverTime);

0 commit comments

Comments
 (0)