// Start is called before the first frame update void Start() { miniBase = gameObject.GetComponentInParent <MiniBase>(); Button btn = boton.GetComponent <Button>(); btn.onClick.AddListener(Click); }
// Start is called before the first frame update void Start() { treelon.enabled = false; counterText.text = "" + don; miniBase = gameObject.GetComponentInParent <MiniBase>(); Button btn = boton.GetComponent <Button>(); btn.onClick.AddListener(Click); }
bool completado = false; // SE PUEDE ELIMINAR <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ? void Start() { miniBase = gameObject.GetComponentInParent <MiniBase>(); }