Files
Continentis/Assets/TemporaryResources/Cartoon Coffee/Demo/Scripts/DeactivateChildren.cs
SoulliesOfficial d09b58fd80 架构大更
2026-03-20 11:56:50 -04:00

28 lines
638 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Demo_Project
{
public class DeactivateChildren : MonoBehaviour
{
// Start is called before the first frame update
// Deactivates the particles, and burst upon the start of the scene
void Start()
{
int childCount = transform.childCount;
for (int i = 0; i < transform.childCount; i++)
{
transform.GetChild(i).gameObject.SetActive(false);
}
}
// Update is called once per frame
void Update()
{
}
}
}