// Use this for initialization
 void Start()
 {
     sm          = GameObject.FindGameObjectWithTag("SoundManager").GetComponent <SoundManager>();
     musicChange = GetComponent <ChangeMusicBackground>();
     vie         = GetComponent <IA_MobVie>();
     uneFois     = false;
 }
Example #2
0
 void Awake()
 {
     nav           = this.GetComponent <NavMeshAgent>();
     anim          = GetComponent <Animator>();
     rb            = GetComponent <Rigidbody> ();
     princesse     = GameObject.FindGameObjectWithTag("Player");
     princesseVie  = princesse.GetComponent <PrincesseVie>();
     princesseArme = princesse.GetComponent <PrincesseArme>();
     pointsInteret = GameObject.FindObjectsOfType <IA_PointInteret>();
     mobVie        = GetComponent <IA_MobVie> ();
     se            = GetComponent <SoundEntity> ();
     me            = GameObject.FindGameObjectWithTag("MobManager").GetComponent <MobManager> ();
     perception    = GetComponent <IA_Perception> ();
     etatCourant   = etatInitial;
 }
 // Use this for initialization
 void Start()
 {
     vie          = GetComponent <IA_MobVie>();
     PremiereFois = false;
 }