private void RemoveAllMarked(UIContent content) { RemoveAllMarked(new List <UIContent>() { content }); }
private void MarkToBeRemoved(UIContent content) { MarkToBeRemoved(new List <UIContent>() { content }); }
public IEnumerator RemoveFromContainerAnimation(UIContent content) { MarkToBeRemoved(content); yield return(StartCoroutine(BeforeRemoveFromContainerAnimation(content))); RemoveFromContainer(content); yield return(StartCoroutine(AfterRemoveFromContainerAnimation(content))); RemoveAllMarked(content); }
// Main code public virtual List <UIContent> AddAllToContainer(List <UIContentInfo> infoList) { List <UIContent> result = new List <UIContent>(); foreach (var info in infoList) { UIContent item = AddToContainer(info); if (item) { result.Add(item); } else { break; } } return(result); }
public virtual IEnumerator AfterRemoveFromContainerAnimation(UIContent content) { yield return(null); }
public virtual void RemoveFromContainer(UIContent content) { }