// =================================================================================== // HELPERS --------------------------------------------------------------------------- /// <summary> /// Fills the given list with all the plugins inside this sequence tween, /// while also looking for them recursively through inner sequences. /// Used by <c>HOTween.GetPlugins</c>. /// </summary> internal override void FillPluginsList(List <ABSTweenPlugin> p_plugs) { if (items == null) { return; } int itemsCount = items.Count; for (int i = 0; i < itemsCount; ++i) { HOTSeqItem itm = items[i]; if (itm.twMember == null) { continue; } Sequence sequence = itm.twMember as Sequence; if (sequence != null) { sequence.FillPluginsList(p_plugs); } else { itm.twMember.FillPluginsList(p_plugs); } } }