10 lines
233 B
C#
10 lines
233 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class AllChildActive_OnEnable : MonoBehaviour
|
||
|
|
{
|
||
|
|
private void OnEnable()
|
||
|
|
{
|
||
|
|
for (int i = 0; i < transform.childCount; i++)
|
||
|
|
transform.GetChild(i).gameObject.SetActive(true);
|
||
|
|
}
|
||
|
|
}
|