1
0
Fork 0
LaboratoryProtection/Assets/UnityTest/Common/Scripts/Object/ObjectRoot.cs

9 lines
223 B
C#
Raw Normal View History

2023-09-12 15:55:51 +08:00
using PMaker.DependencyInjection;
public class ObjectRoot : InstanceMonobehaviour
{
public void SetChildrenActive(int index, bool value)
{
this.transform.GetChild(index).gameObject.SetActive(value);
}
}