ERP/Assets/ERP_UI/Script/FormManager.cs

15 lines
323 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FormManager : MonoBehaviour
{
//隐藏所有子物体
int i;
public void DisAllChild()
{
for (i = 0; i < transform.childCount; i++)
transform.GetChild(i).gameObject.SetActive(false);
}
}