Example #1
0
    // Use this for initialization
    void Start()
    {
        screen = new CloseBinarySimulator();
        int indice = (int)(mass - 10) / 2;

        screen.setSystem(indice, countParticles, sliderPrimaryTemp, sliderSecondaryTemp);
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        //gameObject.AddComponent<ProgressDialog>();
        screen = new CloseBinarySimulator();

        int indice = (int)(mass - 10) / 2;

        //screen.setSystem (new BinarySystemData (3.57027f, 0.10f, 0.71751f, 1.22831f, -0.61414f));
        screen.setSystem(indice,
                         countParticles,
                         sliderPrimaryTemp,
                         sliderSecondaryTemp);

        gameObject.AddComponent <RotateObject>();

        lightCurveWindow = GameObject.Find("LightCurveWindow");
        lightCurveWindow.SetActive(false);
        aboutWindow = GameObject.Find("AboutWindow");
        aboutWindow.SetActive(false);
        helpWindow = GameObject.Find("HelpWindow");
        helpWindow.SetActive(false);
        emailWindow = GameObject.Find("EmailWindow");
        emailWindow.SetActive(false);
        progressDialogWindow = GameObject.Find("ProgressDialogWindow");
        progressDialogWindow.SetActive(false);

        styleLabel.fontSize         = (int)(Screen.width * 0.02f);
        styleLabel.normal.textColor = Color.white;

        styleSpeechBubbleHorizontal.fontSize = (int)(Screen.width * 0.015f);
        styleSpeechBubbleVertical.fontSize   = (int)(Screen.width * 0.015f);

        buttonSize     = new Vector2(Screen.width * 0.095f, Screen.height * 0.085f);
        buttonPosition = new Vector2(Screen.width * 0.0248f, Screen.height * 0.15f);

        sliderVerticalSize = new Vector2(37, Screen.height * 0.25f);
    }