2025-04-17 09:38:18 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class SetFalse : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public Transform[] hiddenChildren;
|
|
|
|
|
|
|
|
|
|
|
|
[ContextMenu("<22><><EFBFBD><EFBFBD>")]
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
|
void Setttt()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
HideChildrenRecursively(transform);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void HideChildrenRecursively(Transform parent)
|
|
|
|
|
|
{
|
|
|
|
|
|
foreach (Transform child in parent)
|
|
|
|
|
|
{
|
|
|
|
|
|
// <20><><EFBFBD>ص<EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2025-04-17 13:18:45 +08:00
|
|
|
|
child.gameObject.SetActive(true);
|
2025-04-17 09:38:18 +08:00
|
|
|
|
// <20>ݹ<EFBFBD><DDB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
HideChildrenRecursively(child);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|