Ejemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            feedback        = drawingPrefab.GetComponent <Feedback>();
            swapCanvas      = drawingPrefab.GetComponent <SwapCanvas>();
            settingsManager = gameManager.GetComponent <SettingsManager>();
            patientManager  = gameManager.GetComponent <PatientManager>();
            sceneManager    = gameManager.GetComponent <SceneManager>();
            soundManager    = gameManager.GetComponentInChildren <SoundManager>();

            bodyManager      = this.GetComponentInChildren <BodyManager>();
            statisticManager = this.GetComponentInChildren <WriteStatisticManager>();

            bodyManager.BodyDetected += BodyManager_BodyDetected;
            bodyManager.BodyLost     += BodyManager_BodyLost;

            waitPanel.GetComponentInChildren <Text>().text = DB.Model.GetModel <DB.ValueTranslation>("noUser").Translation;

            patientManager.SetStressedJoints(GameManager.ActiveExercise);

            movieTexture      = GameManager.ActiveExercise.Video;
            movieTexture.loop = true;

            menuTitle.GetComponentInChildren <Text>().text = GameManager.ActiveExercise.Name;

            GameObject.Find("Video").GetComponent <RawImage>().texture          = movieTexture;
            GameObject.Find("Description").GetComponentInChildren <Text>().text = GameManager.ActiveExercise.Description;
            GameObject.Find("Information").GetComponent <Text>().text           = GameManager.ActiveExercise.Information;
        }
Ejemplo n.º 2
0
        public REMLManager(DB.Patient patient, SettingsManager settingsManager, WriteStatisticManager statisticManager, Feedback feedback, string rel)
        {
            logger.AddLogAppender <ConsoleAppender>();

            this.patient          = patient;
            this.settingsManager  = settingsManager;
            this.statisticManager = statisticManager;
            this.feedback         = feedback;
            this.rel = rel;
        }