// Start is called before the first frame update void Start() { joueur = GameObject.FindGameObjectWithTag("Player"); joueurpv = joueur.GetComponent <PV>(); joueurFloatPv = joueurpv.pv; monsterDeplacement = this.gameObject.GetComponent <MonsterDeplacement>(); monsterState = monsterDeplacement.state; }
// Start is called before the first frame update void Start() { monsterState = this.gameObject.GetComponent <MonsterDeplacement>(); monsterIntState = monsterState.state; audio = this.GetComponent <AudioSource>(); }