Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public PaintAffector(ApplicationContext context, Channels affectedChannels, int rendererStationLayerID) : base(context, affectedChannels)
 {
     rendererStation = new RendererStation(rendererStationLayerID);
 }