public void InvokeSpwanEnemys() { InvokeRepeating("SpawEnemys", 0, 100); HousesLife.SetActive(true); CameraVilage.SetActive(true); Invoke("DesactiveCamera", 8); }
void SpawEnemys() { CameraVilage.SetActive(true); Invoke("DesactiveCamera", 8); for (int i = 0; i < 10; i++) { DuendesAtack = Instantiate(Duende, transform.position, Quaternion.identity) as GameObject; DuendesAtack.SetActive(true); } }
void DesactiveCamera() { CameraVilage.SetActive(false); }
public void AtiveCamera() { CameraVilage.SetActive(true); Invoke("DesactiveCamera", 8); }