private float tempsRestantPourEvaluer; // temps restant pour evaluer la taille de la cible /* * Création et initilisation des différents attributs et composants */ void Start() { controller = new Controller(); lm = new LeapMeasure(); bp = new BarreProgression("BarreVide", "Remplissage", 0, lm.TimerMax); tempsRestantPourEvaluer = GameController.Jeu.Config.Delai_evaluation_cible; tempsMisPourEvaluer = 0; }
/* * Création graphique des textures. */ void OnGUI() { if (bp != null) { // Si nous sommes en CONDITION DE CONTROLE if (GameController.Jeu.Config.Condition_De_Controle) { if (GameController.Jeu.Evaluation_En_Cours) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule(); bp.Update(true); bp.Show(UnityEngine.Screen.width, UnityEngine.Screen.height); } } } // Si nous sommes en CONDITION DE PERCEPTION if (GameController.Jeu.Config.Condition_De_Perception) { if (GameController.Jeu.Tir_Fini) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule(); bp.Update(true); bp.Show(UnityEngine.Screen.width, UnityEngine.Screen.height); } } } // Si nous sommes en CONDITION DE MEMOIRE if (GameController.Jeu.Config.Condition_De_Memoire) { if (GameController.Jeu.Evaluation_En_Cours) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule(); bp.Update(true); bp.Show(UnityEngine.Screen.width, UnityEngine.Screen.height); } } } if (GameController.Jeu.Evaluation_Effectuee) { bp = null; } } }
/* * Création graphique des textures. */ void OnGUI() { if(bp != null) { // Si nous sommes en CONDITION DE CONTROLE if(GameController.Jeu.Config.Condition_De_Controle) { if(GameController.Jeu.Evaluation_En_Cours) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule (); bp.Update (true); bp.Show (UnityEngine.Screen.width, UnityEngine.Screen.height); } } } // Si nous sommes en CONDITION DE PERCEPTION if(GameController.Jeu.Config.Condition_De_Perception) { if(GameController.Jeu.Tir_Fini) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule (); bp.Update (true); bp.Show (UnityEngine.Screen.width, UnityEngine.Screen.height); } } } // Si nous sommes en CONDITION DE MEMOIRE if(GameController.Jeu.Config.Condition_De_Memoire) { if(GameController.Jeu.Evaluation_En_Cours) // POUR AXEL, SI CETTE COND ALORS COMMENCER EVALUATION { if (GameController.Jeu.Config.Affichage_barre_progression) { bp.Valeur = lm.calculNbSecondesEcoule (); bp.Update (true); bp.Show (UnityEngine.Screen.width, UnityEngine.Screen.height); } } } if(GameController.Jeu.Evaluation_Effectuee) { bp = null; } } }
/* * Création et initilisation des différents attributs et composants */ void Start() { controller = new Controller(); lm = new LeapMeasure(); bp = new BarreProgression ("BarreVide", "Remplissage", 0, lm.TimerMax); tempsRestantPourEvaluer = GameController.Jeu.Config.Delai_evaluation_cible; tempsMisPourEvaluer = 0; }