Example #1
0
 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]);
 }
Example #2
0
 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]);
 }
Example #3
0
 public ShaderSpriteUvAnimationSetupData GetSetupData(TrailSpriteDataNamedId id)
 {
     return(datas.Where(d => d.id == id).First().spriteData);
 }