Ejemplo n.º 1
0
        protected virtual void Reset()
        {
            if (TrailData == null)
            {
                TrailData = new PCTrailRendererData();
            }

            TrailData.ColorOverLife = new Gradient();
            TrailData.Lifetime      = 1;
            TrailData.SizeOverLife  = new AnimationCurve(new Keyframe(0, 1), new Keyframe(1, 0));
        }
Ejemplo n.º 2
0
 protected virtual void Reset()
 {
     if (this.TrailData == null)
     {
         this.TrailData = new PCTrailRendererData();
     }
     this.TrailData.Lifetime                 = 1f;
     this.TrailData.UsingSimpleColor         = false;
     this.TrailData.UsingSimpleSize          = false;
     this.TrailData.ColorOverLife            = new Gradient();
     this.TrailData.SimpleColorOverLifeStart = Color.white;
     this.TrailData.SimpleColorOverLifeEnd   = new Color(1f, 1f, 1f, 0f);
     Keyframe[] keys = new Keyframe[] { new Keyframe(0f, 1f), new Keyframe(1f, 0f) };
     this.TrailData.SizeOverLife            = new AnimationCurve(keys);
     this.TrailData.SimpleSizeOverLifeStart = 1f;
     this.TrailData.SimpleSizeOverLifeEnd   = 0f;
 }
        protected virtual void Reset()
        {
            if (TrailData == null)
            {
                TrailData = new PCTrailRendererData();
            }

            TrailData.Lifetime = 1;

            TrailData.UsingSimpleColor = false;
            TrailData.UsingSimpleSize  = false;

            TrailData.ColorOverLife            = new Gradient();
            TrailData.SimpleColorOverLifeStart = Color.white;
            TrailData.SimpleColorOverLifeEnd   = new Color(1, 1, 1, 0);

            TrailData.SizeOverLife            = new AnimationCurve(new Keyframe(0, 1), new Keyframe(1, 0));
            TrailData.SimpleSizeOverLifeStart = 1;
            TrailData.SimpleSizeOverLifeEnd   = 0;
        }
Ejemplo n.º 4
0
        protected virtual void Reset()
        {
            if(TrailData == null)
                TrailData = new PCTrailRendererData();

            TrailData.ColorOverLife = new Gradient();
            TrailData.Lifetime = 1;
            TrailData.SizeOverLife = new AnimationCurve(new Keyframe(0, 1), new Keyframe(1, 0));
            MaxNumberOfPoints = 50;
        }
        protected virtual void Reset()
        {
            if(TrailData == null)
                TrailData = new PCTrailRendererData();

            TrailData.Lifetime = 1;

            TrailData.UsingSimpleColor = false;
            TrailData.UsingSimpleSize = false;

            TrailData.ColorOverLife = new Gradient();
            TrailData.SimpleColorOverLifeStart = Color.white;
            TrailData.SimpleColorOverLifeEnd = new Color(1, 1, 1, 0);

            TrailData.SizeOverLife = new AnimationCurve(new Keyframe(0, 1), new Keyframe(1, 0));
            TrailData.SimpleSizeOverLifeStart = 1;
            TrailData.SimpleSizeOverLifeEnd = 0;
        }
Ejemplo n.º 6
0
 protected virtual void Reset()
 {
     if (this.TrailData == null)
     {
         this.TrailData = new PCTrailRendererData();
     }
     this.TrailData.Lifetime = 1f;
     this.TrailData.UsingSimpleColor = false;
     this.TrailData.UsingSimpleSize = false;
     this.TrailData.ColorOverLife = new Gradient();
     this.TrailData.SimpleColorOverLifeStart = Color.white;
     this.TrailData.SimpleColorOverLifeEnd = new Color(1f, 1f, 1f, 0f);
     this.TrailData.SizeOverLife = new AnimationCurve(new Keyframe[]
     {
         new Keyframe(0f, 1f),
         new Keyframe(1f, 0f)
     });
     this.TrailData.SimpleSizeOverLifeStart = 1f;
     this.TrailData.SimpleSizeOverLifeEnd = 0f;
 }