private static ActionManager MakeActions(ScriptableUnitConfig data, GameObject base_unit) { UnitActionBase[] Actions = M_Math.SpawnFromList(data.Actions.ToList()).ToArray(); M_Math.SetListAsChild(Actions.ToList(), base_unit.transform); return(base_unit.AddComponent <ActionManager>()); }