// 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"); } }
// Start is called before the first frame update void Start() { scriptFabrica = transform.parent.gameObject.GetComponent <FabricaHabitaciones>(); }