void Start() { j = 0; //asignaciones a las referencias checkClor = FindObjectOfType <spriteClickManager>(); popUP = FindObjectOfType <popUpScript>(); btn = gameObject.GetComponent <Button>(); //cuando empieza da la indicacion de tocar el boton de generar numero seteando texto y tamaño de fuente texoDado.GetComponent <Text>().fontSize = 30; texoDado.GetComponent <Text>().text = "TIRÁ EL DADO ↓"; sprDado = GameObject.FindGameObjectWithTag("error"); sprDado.SetActive(false); }
popUpScript popUp; //referencia a los popups // Use this for initialization void Start() { sprControl = FindObjectOfType <spriteClickManager>();//asignacion de variables popUp = FindObjectOfType <popUpScript>(); }