Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        MM        = GetComponent <MoleculeManager>();
        LM        = GetComponent <LevelManager>();
        manager   = GetComponent <Manager>();
        BBManager = GameObject.FindGameObjectWithTag("Board").GetComponent <BlackBoardManager>();
        IM        = GameObject.Find("Info").GetComponent <InformationManager>();

        PS = GetComponent <PointSystem>();
        if (levelsFile != "")
        {
            levels = HandleTextFile.ReadLevels(levelsFile);
        }
        //APMultiple = GameObject.Find("ControlPanelAnswers").GetComponent<AnswerPanel>();
        //APSingle = GameObject.Find("ControlPanelAnswer").GetComponent<AnswerPanel>();
        levelComplete    = false;
        newLevel         = true;
        getAnswer        = false;
        correctMolLoaded = false;
        partialCreated   = false;
        canCreateNew     = true;
        restore          = false;
        level            = 1;
        string[] info = new string[2] {
            "1", "multiple choice"
        };
        Logs.BeginFile(fileName, info);
        SoundEffectsManager.SetUp();
    }