public SpriteSheetAnimationComponentData GetAnimationData(TrailSpriteDataNamedId id) { if (!animationData.ContainsKey(id)) { var spriteData = datas.Where(d => d.id == id).First(); animationData.Add(id, DataToComponentData.ToComponentData(spriteData.spriteData)); } return(animationData[id]); }
public RenderSharedComponentData GetRenderData(TrailSpriteDataNamedId id) { if (!renderData.ContainsKey(id)) { var spriteData = datas.Where(d => d.id == id).First(); renderData.Add(id, new RenderSharedComponentData() { material = spriteData.spriteData.Material, mesh = spriteData.spriteData.Mesh }); } return(renderData[id]); }
public ShaderSpriteUvAnimationSetupData GetSetupData(TrailSpriteDataNamedId id) { return(datas.Where(d => d.id == id).First().spriteData); }