Beispiel #1
0
        private void PlayTrails(ParticleSystem particle)
        {
            TrailRenderer component = particle.gameObject.GetComponent <TrailRenderer>();

            if (component != null)
            {
                component.enabled = true;
                component.time    = -component.time;
                this.trailToClear = component;
            }
            WeaponTrail component2 = particle.gameObject.GetComponent <WeaponTrail>();

            if (component2 != null)
            {
                component2.Restart();
            }
        }