Beispiel #1
0
    void OnEnable()
    {
        if (!GetComponent <BehaviourLayout>()._isEvaluated&& !once)
        {
            _player            = FindObjectOfType <M08A050T_BehaviourPlayer>();
            _ControlNavegacion = FindObjectOfType <ControlNavegacion>();
            _player._active    = true;

            _mobileControllers.SetActive(Application.isMobilePlatform);

            _revision.SetActive(false);
        }
        else if (!once)
        {
            _revision.SetActive(true);

            foreach (var quest in _question)
            {
                quest.transform.SetParent(_revision.transform);
                quest.GetComponent <M08A050T_ManagerSeleccionarToggle>()._validarBTN.gameObject.SetActive(false);
                quest.SetActive(true);
            }

            _question[0].GetComponent <RectTransform>().anchoredPosition = new Vector2(-390, 120);
            _question[1].GetComponent <RectTransform>().anchoredPosition = new Vector2(390, 120);
            _question[2].GetComponent <RectTransform>().anchoredPosition = new Vector2(0, -170);

            once = true;
        }
    }
    public void Start()
    {
        x = PlayerPrefs.GetInt("review");

        if (!Application.isMobilePlatform)
        {
            GetName.SetActive(true);
            KeyPad.SetActive(false);
        }
        else
        {
            GetName.SetActive(false);
            KeyPad.SetActive(true);
        }

        _controlAudio        = FindObjectOfType <ControlAudio>();
        _controlNavegacion   = FindObjectOfType <ControlNavegacion>();
        _controlRevision     = FindObjectOfType <ControlRevision>();
        _behaviourScreenShot = FindObjectOfType <BehaviourScreenShot>();

        date.text = DateTime.Now.ToString("MM/dd/yyyy");
        _save     = GetName.transform.GetChild(0).GetComponent <Button>();
        _save.onClick.AddListener(SaveName);

        _review.onClick.AddListener(FunctionReview);
        _restart.onClick.AddListener(FunctionRestart);
        _print.onClick.AddListener(FunctionPrint);
    }
Beispiel #3
0
    void LateUpdate()
    {
        _ManagerTrail    = FindObjectOfType <M08A050T_ManagerTrail>();
        _ManagerMountain = FindObjectOfType <M08A050T_ManagerMountain>();
        _ManagerCascade  = FindObjectOfType <M08A050T_ManagerCascade>();

        _ControlNavegacion = FindObjectOfType <ControlNavegacion>();
    }
Beispiel #4
0
 void Start()
 {
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
     _back       = _revision.transform.GetChild(0).GetComponent <Button>();
     _next       = _revision.transform.GetChild(1).GetComponent <Button>();
     _endReview  = _revision.transform.GetChild(2).GetComponent <Button>();
     _state      = false;
     firstAplico = GetIndexAplico();
 }
Beispiel #5
0
 void Awake()
 {
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
     _controlAudio      = FindObjectOfType <ControlAudio>();
     _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
     canvas             = FindObjectOfType <Canvas>();
     _validar.gameObject.SetActive(_TypeValidation == TypeValidation.Button);
     _validar.onClick.AddListener(delegate { ValidarDragDrop(); });
     //StartCoroutine(StateBtnValidar());
 }
    private void Start()
    {
        evaluated = 0;
        reset     = false;

        _controlAudio      = FindObjectOfType <ControlAudio>();
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();

        SetValidar();
        StartCoroutine(StateBtnValidar());
    }
    private void Awake()
    {
        _controlAudio      = FindObjectOfType <ControlAudio>();
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        generateWordSearch = transform.GetChild(0).GetChild(0).GetComponent <Generate_WordSearch>();

        foreach (var palabras in generateWordSearch.palabrasVerticales.Concat(generateWordSearch.palabrasHorizontales))
        {
            listaCorrecta.Add(palabras.ToUpper());
        }
    }
    private void Start()
    {
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();
        _controlAudio      = FindObjectOfType <ControlAudio>();

        if (_validar)
        {
            _validar.onClick.AddListener(EvaluateDropDown);
        }

        _validar.interactable = false;
    }
    private void Start()
    {
        _GeneralManager.currentExercise = gameObject;
        evaluated = 0;
        reset     = false;

        _controlAudio      = FindObjectOfType <ControlAudio>();
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();

        SetValidar();
        StateBtnValidar();
    }
Beispiel #10
0
    void Start()
    {
        _controlAudio      = FindObjectOfType <ControlAudio>();
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();

        _trash.gameObject.SetActive(_typeValidation == TypeValidation.boton);
        _trash.onClick.AddListener(DeleteLines);
        StateBtnDelete();

        _validar.gameObject.SetActive(_typeValidation == TypeValidation.boton);
        _validar.onClick.AddListener(ValidarLines);
        StateBtnValidar();
    }
Beispiel #11
0
    void Start()
    {
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();
        _image             = GetComponent <Image>();
        _spriteState       = GetComponent <Button>().spriteState;

        SetSpriteState();

        if (GetComponent <BehaviourSprite>())
        {
            _behaviourSprite = GetComponent <BehaviourSprite>();
            SetBehaviourSprite();
        }


        GetComponent <Button>().spriteState = _spriteState;
    }
    void OnEnable()
    {
        if (!GetComponent <BehaviourLayout>()._isEvaluated&& !once)
        {
            _player            = FindObjectOfType <M08A050T_BehaviourPlayer>();
            _ControlNavegacion = FindObjectOfType <ControlNavegacion>();
            lifes           = _hearts.Length - 1;
            _player._active = true;

            _mobileControllers.SetActive(Application.isMobilePlatform);

            _revision.SetActive(false);
        }
        else if (!once)
        {
            _revision.SetActive(true);

            for (int i = 0; i < _question.Length; i++)
            {
                _question[i].transform.GetChild(0).SetParent(_revision.transform.GetChild(i));
                _question[i].transform.GetChild(0).SetParent(_revision.transform.GetChild(i));
                _question[i].SetActive(true);
            }

            for (int i = 0; i < _revision.transform.childCount - 1; i++)
            {
                _revision.transform.GetChild(i).transform.GetChild(0).GetComponent <RectTransform>().anchoredPosition = new Vector2(-375, 0);
                _revision.transform.GetChild(i).transform.GetChild(0).GetComponent <RectTransform>().localScale       = new Vector3(3, 3, 3);


                _revision.transform.GetChild(i).transform.GetChild(1).GetComponent <RectTransform>().anchorMin = new Vector2(.5f, .5f);
                _revision.transform.GetChild(i).transform.GetChild(1).GetComponent <RectTransform>().anchorMax = new Vector2(.5f, .5f);

                _revision.transform.GetChild(i).transform.GetChild(1).GetComponent <RectTransform>().anchoredPosition = new Vector2(590, 0);
                _revision.transform.GetChild(i).transform.GetChild(1).GetComponent <RectTransform>().localScale       = new Vector3(2.5f, 2.5f, 2.5f);
            }

            once = true;
        }
    }
Beispiel #13
0
    void Awake()
    {
        hand.SetActive(false);
        validar_1.SetActive(false);
        first = true;
        _controlNavegacion = FindObjectOfType <ControlNavegacion>();
        _controlAudio      = FindObjectOfType <ControlAudio>();
        _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
        canvas             = FindObjectOfType <Canvas>();
        _validar.gameObject.SetActive(_TypeValidation == TypeValidation.Button);
        _validar.onClick.AddListener(delegate { ValidarDragDrop(); });
        StartCoroutine(StateBtnValidar());
        foreach (var s in sliders)
        {
            s.gameObject.SetActive(false);
        }


        if (needRandom)
        {
            RandomDrag();
        }
    }
Beispiel #14
0
 void Awake()
 {
     _controlAudio      = FindObjectOfType <ControlAudio>();
     _controlPuntaje    = FindObjectOfType <ControlPuntaje>();
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
 }
 private void Start()
 {
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
     _controlAudio      = FindObjectOfType <ControlAudio>();
     SetActionButton();
 }
Beispiel #16
0
 private void Start()
 {
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
     GetSizeTypeLayout();
 }
Beispiel #17
0
 private void Awake()
 {
     valor = _Slider.minValue;
     _controlNavegacion = FindObjectOfType <ControlNavegacion>();
 }