// Use this for initialization void Start() { flame = transform.Find("Flames").GetComponent<ParticleEmitter>(); smoke = transform.Find("Smoke").GetComponent<ParticleEmitter>(); enableToMove = false; transform.position = new Vector3(189, 33, 116); Invoke("startToPlay", 2.0F); motoGenerator = GameObject.FindGameObjectWithTag("motoGenerator").GetComponent<MotorcycleGenerator>(); carGenerator = GameObject.FindGameObjectWithTag("carGenerator").GetComponent<CarGenerator>(); truckGenerator = GameObject.FindGameObjectWithTag("truckGenerator").GetComponent<TruckGenerator>(); }
// Use this for initialization void Start() { flame = transform.Find("Flames").GetComponent <ParticleEmitter>(); smoke = transform.Find("Smoke").GetComponent <ParticleEmitter>(); enableToMove = false; transform.position = new Vector3(189, 33, 116); Invoke("startToPlay", 2.0F); motoGenerator = GameObject.FindGameObjectWithTag("motoGenerator").GetComponent <MotorcycleGenerator>(); carGenerator = GameObject.FindGameObjectWithTag("carGenerator").GetComponent <CarGenerator>(); truckGenerator = GameObject.FindGameObjectWithTag("truckGenerator").GetComponent <TruckGenerator>(); }
// Use this for initialization void Start() { motoGenerator = GameObject.FindGameObjectWithTag("motoGenerator").GetComponent <MotorcycleGenerator>(); carGenerator = GameObject.FindGameObjectWithTag("carGenerator").GetComponent <CarGenerator>(); truckGenerator = GameObject.FindGameObjectWithTag("truckGenerator").GetComponent <TruckGenerator>(); }
// Use this for initialization void Start() { motoGenerator = GameObject.FindGameObjectWithTag("motoGenerator").GetComponent<MotorcycleGenerator>(); carGenerator = GameObject.FindGameObjectWithTag("carGenerator").GetComponent<CarGenerator>(); truckGenerator = GameObject.FindGameObjectWithTag("truckGenerator").GetComponent<TruckGenerator>(); }