using PMaker.DependencyInjection; public class ObjectRoot : InstanceMonobehaviour { public void SetChildrenActive(int index, bool value) { this.transform.GetChild(index).gameObject.SetActive(value); } }