void Start()
 {
     Time.timeScale = 1f;
     controlSpawner = controlfinal.GetComponent <controlSpawner> ();
     oleadas        = GetComponentInChildren <ParticleSystem> ();
     Invoke("Spawn", Random.Range(0.5f, 4f));
 }
示例#2
0
 void Start()
 {
     svidas         = Valdes.GetComponent <vidas> ();
     controlSpawner = controlfinal.GetComponent <controlSpawner> ();
     spawnTime      = Random.Range(2.3f, l);
     //print (spawnTime);
     // Start calling the Spawn function repeatedly after a delay .
     InvokeRepeating("Spawn", spawnInicio, spawnTime);
 }
	void Start ()
	{ 
		Time.timeScale =  1f;
		controlSpawner = controlfinal.GetComponent<controlSpawner> ();
		oleadas = GetComponentInChildren<ParticleSystem> ();
		Invoke("Spawn", Random.Range (0.5f, 4f));



	}