Пример #1
0
 public void InvokeSpwanEnemys()
 {
     InvokeRepeating("SpawEnemys", 0, 100);
     HousesLife.SetActive(true);
     CameraVilage.SetActive(true);
     Invoke("DesactiveCamera", 8);
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 void DesactiveCamera()
 {
     CameraVilage.SetActive(false);
 }
Пример #4
0
 public void AtiveCamera()
 {
     CameraVilage.SetActive(true);
     Invoke("DesactiveCamera", 8);
 }