rise-and-swine/Assets/Scripts/Assembly-CSharp/UnscaledParticles.cs

24 lines
382 B
C#
Raw Permalink Normal View History

2023-02-25 23:04:03 -05:00
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;
}