public PaintCommand(RendererStation rendererStation, GameObject go, float objectWidth, Action onNeedUpdate) { Assert.ArgumentNotNull(rendererStation, nameof(rendererStation)); Assert.ArgumentNotNull(go, nameof(go)); this.rendererStation = rendererStation; this.go = go; this.objectWidth = Mathf.Clamp(objectWidth, 0, float.MaxValue); this.onNeedUpdate = onNeedUpdate; rendererStation.UseIt(go, objectWidth); }
public PaintAffector(ApplicationContext context, Channels affectedChannels, int rendererStationLayerID) : base(context, affectedChannels) { rendererStation = new RendererStation(rendererStationLayerID); }