using Core; using UnityEngine; using System.Collections.Generic; using Script.Gameplay.Interface; namespace Script.Gameplay.Edit { public class EditableManager : MonoSingleton { public static List GetEditableComponents(GameObject target) { var components = new List(); foreach (var mb in target.GetComponentsInChildren(true)) { if (mb is IEditableComponent editableComponent) { components.Add(editableComponent); } } return components; } } }