public static void SetEnabled(this LODGroup lodGroup, bool enabled) { if (lodGroup.enabled != enabled) { lodGroup.enabled = enabled; lodGroup.SetRenderersEnabled(enabled); } }
public static void SetEnabled(this LODGroup lodGroup, bool enabled) { if (lodGroup.enabled != enabled) { lodGroup.enabled = enabled; lodGroup.SetRenderersEnabled(enabled); } }