blob: e51223cc88d2d276ec14b38b737b7d9c2ca49a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
using UnityEngine;
public class DisableChildren : MonoBehaviour
{
private void Start()
{
ParticleSystem[] componentsInChildren = GetComponentsInChildren<ParticleSystem>();
for (int i = 0; i < componentsInChildren.Length; i++)
{
componentsInChildren[i].gameObject.SetActive(value: false);
}
}
}
|