mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
Update DreamWorldSpawnAnimator.cs
This commit is contained in:
parent
b1093b162f
commit
aed4975d22
@ -8,17 +8,15 @@ public class DreamWorldSpawnAnimator : MonoBehaviour
|
|||||||
private Transform _bodyRoot;
|
private Transform _bodyRoot;
|
||||||
|
|
||||||
private float _progression;
|
private float _progression;
|
||||||
private Renderer[] _renderers;
|
|
||||||
private Material _spawnEffectMaterial;
|
private Material _spawnEffectMaterial;
|
||||||
|
|
||||||
public const float DREAMWORLD_SPAWN_TIME = 2f;
|
public const float DREAMWORLD_SPAWN_TIME = 2f;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_renderers = GetComponentsInChildren<Renderer>(true);
|
|
||||||
enabled = false;
|
enabled = false;
|
||||||
|
|
||||||
foreach (var renderer in _renderers)
|
foreach (var renderer in GetComponentsInChildren<Renderer>(true))
|
||||||
{
|
{
|
||||||
foreach (var material in renderer.sharedMaterials)
|
foreach (var material in renderer.sharedMaterials)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user