예제 #1
0
 private void MarkIsBeingAdded(UIContentInfo contentInfo, bool value)
 {
     MarkIsBeingAdded(new List <UIContentInfo>()
     {
         contentInfo
     }, value);
 }
예제 #2
0
        public virtual UIContent AddToContainer(UIContentInfo info)
        {
            var newContent = factory.Create();

            newContent.Info = info;
            newContent.UpdateAppearance();
            info.Content = newContent;
            return(newContent);
        }
예제 #3
0
        public IEnumerator AddToContainerAnimation(UIContentInfo contentInfo)
        {
            MarkIsBeingAdded(contentInfo, true);
            yield return(StartCoroutine(BeforeAddToContainerAnimation(contentInfo)));

            AddToContainer(contentInfo);
            yield return(StartCoroutine(AfterAddToContainerAnimation(contentInfo)));

            MarkIsBeingAdded(contentInfo, false);
        }
예제 #4
0
 public virtual IEnumerator AfterAddToContainerAnimation(UIContentInfo contentInfo)
 {
     yield return(null);
 }