From aed4975d22acced918842052d3aa89ddfcbe09e4 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sat, 26 Mar 2022 10:36:04 -0700 Subject: [PATCH] Update DreamWorldSpawnAnimator.cs --- QSB/PlayerBodySetup/Remote/DreamWorldSpawnAnimator.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/QSB/PlayerBodySetup/Remote/DreamWorldSpawnAnimator.cs b/QSB/PlayerBodySetup/Remote/DreamWorldSpawnAnimator.cs index 1bac4442..b189ecf6 100644 --- a/QSB/PlayerBodySetup/Remote/DreamWorldSpawnAnimator.cs +++ b/QSB/PlayerBodySetup/Remote/DreamWorldSpawnAnimator.cs @@ -8,17 +8,15 @@ public class DreamWorldSpawnAnimator : MonoBehaviour private Transform _bodyRoot; private float _progression; - private Renderer[] _renderers; private Material _spawnEffectMaterial; public const float DREAMWORLD_SPAWN_TIME = 2f; private void Awake() { - _renderers = GetComponentsInChildren(true); enabled = false; - foreach (var renderer in _renderers) + foreach (var renderer in GetComponentsInChildren(true)) { foreach (var material in renderer.sharedMaterials) {