/// <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)); }
public void AddContents(IList <BuffContent> contents) { PortraitUtil.GetDifferences(ref previous, contents, buffPrefab, gameObject, bc => bc.Id, (v, c) => SetupViewFromContent(v, c)); }
/// <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)); }