rise-and-swine/Assets/Scripts/Assembly-CSharp/UnscaledParticles.cs
2023-02-25 23:04:03 -05:00

23 lines
382 B
C#

using UnityEngine;
public class UnscaledParticles : MonoBehaviour
{
private void Awake()
{
if (this.particles == null)
{
this.particles = base.GetComponent<ParticleSystem>();
}
}
private void Update()
{
if (Time.timeScale != 1f)
{
this.particles.Simulate(Time.unscaledDeltaTime, true, false);
}
}
[SerializeField]
private ParticleSystem particles;
}