Example #1
0
    public void ShowFeature(int id)
    {
        var feat = features.FirstOrDefault((f) => f.id == id);

        if (feat == null)
        {
            ShowMenu();
            return;
        }

        m_currFeature = feat;

        // Esconder side menu
        HideMenu();

        // al finalizar movimiento boton, mostrar menu features
        title.GetComponentInChildren <Text>().text = feat.title;
        title.setActiveWindow(true);

        feat.isActive = true;

        if (feat.type == TypeFeature.Information)
        {
            // Informacion

            information.GetComponentInChildren <TextMeshProUGUI>().text = feat.information;

            information.setActiveWindow(true);

            // Cambiar de shader a focus
            // set focus
            m_shaderControl.setModeView(ModeBagView.Focus);
            m_shaderControl.setFocus(feat.idFocusFeature);
        }
        else
        {
            // Modificar texturas

            modificationTexture.setActiveWindow(true);

            // Cambiar textura de los botones de acuerdo al modelo
            // Mostrar texto de boton
        }
    }