forked from zxl/LaboratoryProtection
9 lines
223 B
C#
9 lines
223 B
C#
|
using PMaker.DependencyInjection;
|
||
|
|
||
|
public class ObjectRoot : InstanceMonobehaviour
|
||
|
{
|
||
|
public void SetChildrenActive(int index, bool value)
|
||
|
{
|
||
|
this.transform.GetChild(index).gameObject.SetActive(value);
|
||
|
}
|
||
|
}
|