private void Start() { if (this._lightStyle == null) { this._lightStyle = LightStyleDefault.Singleton; } this.simulationIdle = this._lightStyle.CreateSimulation(LightStyle.time, this); }
public LightStyle.Simulation CreateSimulation(double startTime, LightStylist stylist) { LightStyle.Simulation simulation = this.ConstructSimulation(stylist); if (simulation != null) { simulation.ResetTime(startTime); } return(simulation); }
private void CrossFadeDone() { LightStylist.Clip clip; if (this.clips.TryGetValue(this.crossfadeThisFrame, out clip)) { this.clips.Remove(this.style); this.GetOrMakeClip(this._lightStyle).weight = 0f; this._lightStyle = this.style; this.simulationIdle = clip.simulation; } this.crossfadeThisFrame = null; this.crossfadeNextFrame = null; }
protected override bool DeconstructSimulation(LightStyle.Simulation simulation) { return(false); }
protected abstract bool DeconstructSimulation(LightStyle.Simulation simulation);