Exemplo n.º 1
0
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.MinMaxGradient uo = (ParticleSystem.MinMaxGradient)obj;
     mode        = uo.mode;
     gradientMax = uo.gradientMax;
     gradientMin = uo.gradientMin;
     colorMax    = uo.colorMax;
     colorMin    = uo.colorMin;
     color       = uo.color;
     gradient    = uo.gradient;
 }
        protected override void ReadFromImpl(object obj)
        {
            base.ReadFromImpl(obj);
            LineRenderer uo = (LineRenderer)obj;

            startWidth        = uo.startWidth;
            endWidth          = uo.endWidth;
            widthMultiplier   = uo.widthMultiplier;
            numCornerVertices = uo.numCornerVertices;
            numCapVertices    = uo.numCapVertices;
            useWorldSpace     = uo.useWorldSpace;
            loop                 = uo.loop;
            startColor           = uo.startColor;
            endColor             = uo.endColor;
            positionCount        = uo.positionCount;
            generateLightingData = uo.generateLightingData;
            textureMode          = uo.textureMode;
            alignment            = uo.alignment;
            widthCurve           = uo.widthCurve;
            colorGradient        = uo.colorGradient;
            shadowBias           = uo.shadowBias;
        }