Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     scriptFabrica = transform.parent.gameObject.GetComponent <FabricaHabitaciones>();
     if (scriptFabrica == null)
     {
         Debug.LogError("No se encuentra el objeto FabricaHabitaciones");
     }
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     scriptFabrica = transform.parent.gameObject.GetComponent <FabricaHabitaciones>();
 }