Example #1
0
        private void SateliteButton_Click(object sender, RoutedEventArgs e)
        {
            SateliteSelector sateliteSelector = new SateliteSelector();
            CommonLightBox   commonLightBox   = new CommonLightBox();

            commonLightBox.LightBoxKind = CommonLightBox.CommonLightBoxKind.CancelOnly;
            commonLightBox.BindUIElement(sateliteSelector);
            commonLightBox.Owner = Application.Current.MainWindow;

            ShowDialogManager.ShowDialog(commonLightBox);
        }
Example #2
0
    void Start()
    {
        var model = GameObject.Find("Model");
        Debug.Assert(model != null, "No se ha encontrado el modelo.");

        var gameManager = (GameManager)model.GetComponent(typeof(GameManager));

        sateliteSelector = (SateliteSelector)model.GetComponent(typeof(SateliteSelector));

        campo = gameObject.GetComponentInChildren<Text>();
        foreach (Text text in gameObject.GetComponentsInChildren<Text>())
        {
            if (text.name.ToLower().EndsWith("value"))
            {
                campo = text;
            }
        }

        //nombre = gameObject.GetComponent<Text>();
        Debug.Assert(campo != null, "No se ha encontrado el campo value");
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        var model = GameObject.Find("Model");
        Debug.Assert(model != null, "No se ha encontrado el modelo.");

        var gameManager = (GameManager)model.GetComponent(typeof(GameManager));

        GestionarZoom();

        sateliteSelector = (SateliteSelector)model.GetComponent(typeof(SateliteSelector));
    }