Ejemplo n.º 1
0
    private Clip GetOrMakeClip(LightStyle style)
    {
        Clip clip;

        if (!this.clips.TryGetValue(style, out clip))
        {
            clip = new Clip {
                simulation = style.CreateSimulation(LightStyle.time, this)
            };
            this.clips[style] = clip;
        }
        return(clip);
    }
Ejemplo n.º 2
0
 private LightStylist.Clip GetOrMakeClip(LightStyle style)
 {
     LightStylist.Clip clip;
     if (this.clips.TryGetValue(style, out clip))
     {
         return(clip);
     }
     clip = new LightStylist.Clip()
     {
         simulation = style.CreateSimulation(LightStyle.time, this)
     };
     this.clips[style] = clip;
     return(clip);
 }