コード例 #1
0
 /// <summary>
 /// Selectively update Portraits by only
 /// removing those whose Characters no longer exist.
 /// This allows us to use the shake effect.
 /// </summary>
 /// <param name="characters"></param>
 public void AddContents(IEnumerable <PortraitContent> contents)
 {
     PortraitUtil.GetDifferences(ref previous,
                                 contents,
                                 portraitPrefab,
                                 this.gameObject,
                                 c => c.Id,
                                 (v, c) => SetupViewFromContent(v, c));
 }
コード例 #2
0
 public void AddContents(IList <BuffContent> contents)
 {
     PortraitUtil.GetDifferences(ref previous, contents, buffPrefab, gameObject, bc => bc.Id, (v, c) => SetupViewFromContent(v, c));
 }
コード例 #3
0
 /// <summary>
 /// Adds the contents.
 /// </summary>
 /// <param name="contents">The contents.</param>
 public void AddContents(IEnumerable <ResourceContent> contents)
 {
     PortraitUtil.GetDifferences(ref previous, contents, resourcePrefab, gameObject, c => c.Id, (v, c) => SetupViewFromContent(v, c));
 }