Example #1
0
        void Start()
        {
            car = GetComponent <TinyCarController>();

            if (particlesSideFriction != null)
            {
                particlesSideFriction.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
            }
            if (particlesSideCollision != null)
            {
                particlesSideCollision.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
            }
            if (particlesLanding != null)
            {
                particlesLanding.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
            }
            if (particlesDrifting != null)
            {
                particlesDrifting.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
            }
        }
 void Start()
 {
     carController = FindObjectOfType <TinyCarController>();
     carCamera     = FindObjectOfType <TinyCarCamera>();
     textDebug     = GetComponent <Text>();
 }