Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        miniBase = gameObject.GetComponentInParent <MiniBase>();
        Button btn = boton.GetComponent <Button>();

        btn.onClick.AddListener(Click);
    }
Exemplo n.º 2
0
    // 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);
    }
Exemplo n.º 3
0
    bool completado = false;    // SE PUEDE ELIMINAR  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ?

    void Start()
    {
        miniBase = gameObject.GetComponentInParent <MiniBase>();
    }