Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        pref_PaintContact             = Resources.Load <GameObject>("Prefabs/pref_PaintContact");
        particleSystem                = GameObject.Instantiate <GameObject>(pref_PaintContact).GetComponent <ParticleSystem>();
        particleSystem.enableEmission = false;

        wheelCollider = GetComponent <WheelCollider>();
        paintBrush    = PaintBrush.Locate();
    }
 void Start()
 {
     _paintBrush = PaintBrush.Locate();
     _car        = GetComponentInParent <CarController>();
 }