internal static bool EnumComponent(SpriteAnimationComponent comp, ComponentDelegate callback, bool skipNotExpand) { if (!callback(comp)) return false; if (!skipNotExpand || comp.expand) foreach (int idx in comp.children) if (!EnumComponent(comp.clip.subComponents[idx], callback, skipNotExpand)) return false; return true; }
internal static bool EnumComponent(SpriteAnimationComponent comp, ComponentDelegate callback, bool skipNotExpand) { if (!callback(comp)) { return(false); } if (!skipNotExpand || comp.expand) { foreach (int idx in comp.children) { if (!EnumComponent(comp.clip.subComponents[idx], callback, skipNotExpand)) { return(false); } } } return(true); }
public static void EnumComponent(SpriteAnimationClip clip, ComponentDelegate callback, bool skipNotExpand) { EnumComponent(clip.root, callback, skipNotExpand); }