private void MarkIsBeingAdded(UIContentInfo contentInfo, bool value) { MarkIsBeingAdded(new List <UIContentInfo>() { contentInfo }, value); }
public virtual UIContent AddToContainer(UIContentInfo info) { var newContent = factory.Create(); newContent.Info = info; newContent.UpdateAppearance(); info.Content = newContent; return(newContent); }
public IEnumerator AddToContainerAnimation(UIContentInfo contentInfo) { MarkIsBeingAdded(contentInfo, true); yield return(StartCoroutine(BeforeAddToContainerAnimation(contentInfo))); AddToContainer(contentInfo); yield return(StartCoroutine(AfterAddToContainerAnimation(contentInfo))); MarkIsBeingAdded(contentInfo, false); }
public virtual IEnumerator AfterAddToContainerAnimation(UIContentInfo contentInfo) { yield return(null); }