void Start() { Time.timeScale = 1f; controlSpawner = controlfinal.GetComponent <controlSpawner> (); oleadas = GetComponentInChildren <ParticleSystem> (); Invoke("Spawn", Random.Range(0.5f, 4f)); }
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)); }