Example #1
0
 public override void GetBuffer()
 {
     if (trail == null)
     {
         trail = GetComponent <TrailBuffer>();
     }
 }
Example #2
0
 public override void GetBuffer()
 {
     if (tBuffer == null)
     {
         tBuffer = GetComponent <TrailBuffer>();
     }
     if (buffer == null)
     {
         buffer = tBuffer.particles;
     }
 }
Example #3
0
        public override void GetBuffer()
        {
            if (buffer == null)
            {
                buffer = GetComponent <TransferVertBuffer>();
            }
            if (triBuffer == null)
            {
                triBuffer = GetComponent <TransferTriBuffer>();
            }
            if (particleBuffer == null)
            {
                particleBuffer = GetComponent <TrailBuffer>();
            }

            trailBuffer = (TrailBuffer)particleBuffer;
            material.SetBuffer("_transferBuffer", buffer._buffer);
        }
Example #4
0
 public virtual void GetBuffer()
 {
     buffer = GetComponent <TrailBuffer>();
 }