@@ -96,7 +96,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void FirstSetUpObject(bool isFirstGenerated)
|
||||
{
|
||||
if (trailParticleSystem == null)
|
||||
trailParticleSystem = GetComponent<ParticleSystem>();
|
||||
trailParticleSystem = GetComponentInChildren<ParticleSystem>();
|
||||
|
||||
particleRenderer = trailParticleSystem != null
|
||||
? trailParticleSystem.GetComponent<ParticleSystemRenderer>()
|
||||
@@ -135,8 +135,14 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
/// </summary>
|
||||
public void ApplyParticleSettings()
|
||||
{
|
||||
if (trailParticleSystem == null)
|
||||
trailParticleSystem = GetComponentInChildren<ParticleSystem>();
|
||||
|
||||
if (trailParticleSystem == null) return;
|
||||
|
||||
if (particleRenderer == null)
|
||||
particleRenderer = trailParticleSystem.GetComponent<ParticleSystemRenderer>();
|
||||
|
||||
float safeLifetime = Mathf.Max(particleLifetime, MinLifetime);
|
||||
int safeCount = Mathf.Max(particleCount, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user