/// <summary> /// Va chercher les component requis. /// </summary> void Start() { scriptBase = GetComponent <ennemyBasic>(); audioSource = GetComponent <AudioSource>(); animationEnnemy = GetComponent <Animator>(); navMeshAgent = GetComponent <NavMeshAgent>(); //Enlever les commentaires pour faire en sorte que la difficulté affecte la vie de l'ennemi /* * switch (DataManager.singleton.difficulte) * { * case "Facile": * scriptBase.maxHealth = 10; * break; * case "Normal": * scriptBase.maxHealth = 20; * break; * case "Difficile": * scriptBase.maxHealth = 30; * break; * default: * break; * } * * scriptBase.health = scriptBase.maxHealth; */ }