Beispiel #1
0
    void Start()
    {
        mainCamera = Camera.main;

        Screen.lockCursor = true;
        GameObject tasks = GameObject.Find("TasksTests");

        taskManagement = tasks.GetComponent <TaskManagementTests>();
        inventory.Add("I", 1);
        inventory.Add("II", 1);

        inventory.Add("H", 10);
        inventory.Add("C", 10);
        inventory.Add("O", 10);
        inventory.Add("B", 10);
        inventory.Add("N", 10);
        inventory.Add("F", 10);
        inventory.Add("Cl", 10);

        bonds      = new Dictionary <Rect, Texture2D>();
        bondsLogic = new Dictionary <string, List <int[]> >();
        bondsLogic.Add("I", new List <int[]>());
        bondsLogic.Add("II", new List <int[]>());

        usedCompound = "";

        journalShown                  = true;
        journalStyle                  = new GUIStyle();
        journalStyle.fontSize         = 16;
        journalStyle.wordWrap         = true;
        journalStyle.normal.textColor = Color.white;

        if (Application.loadedLevelName.Equals("postScene"))
        {
            ToolToggle();
            successMessages[0] = "NH3";
            successMessages[1] = "CH2O";
            successMessages[2] = "BF3";
            logfile            = @"Log\Louis-JVI-posttest.txt";
        }
    }
Beispiel #2
0
    void Start()
    {
        mainCamera = Camera.main;

        Screen.lockCursor = true;
        GameObject tasks = GameObject.Find ("TasksTests");
        taskManagement = tasks.GetComponent<TaskManagementTests>();
        inventory.Add("I",1);
        inventory.Add("II",1);

        inventory.Add ("H", 10);
        inventory.Add ("C", 10);
        inventory.Add ("O", 10);
        inventory.Add ("B", 10);
        inventory.Add ("N", 10);
        inventory.Add ("F", 10);
        inventory.Add ("Cl", 10);

        bonds = new Dictionary<Rect, Texture2D>();
        bondsLogic = new Dictionary<string, List<int[]>>();
        bondsLogic.Add ("I",new List<int[]>());
        bondsLogic.Add ("II",new List<int[]>());

        usedCompound = "";

        journalShown = true;
        journalStyle = new GUIStyle ();
        journalStyle.fontSize = 16;
        journalStyle.wordWrap = true;
        journalStyle.normal.textColor = Color.white;

        if(Application.loadedLevelName.Equals("postScene"))
        {
            ToolToggle ();
            successMessages[0] = "NH3";
            successMessages[1] = "CH2O";
            successMessages[2] = "BF3";
            logfile = @"Log\Louis-JVI-posttest.txt";
        }
    }