private void SetupGunBar() { Image gunBar = GameObject.FindGameObjectWithTag("gunPlein").GetComponent <Image>(); barreGun = new GunBar(gunBar); onDieMainPlayerHook = new OnDieMainPlayerHook(this); }
protected override void SetupLifeBar() { const float PLAYERMAXSTARTINGLIFE = 100; Image barreVie = GameObject.FindGameObjectWithTag("viePleine").GetComponent <Image>(); barreDeVie = new LifeBar(barreVie, PLAYERMAXSTARTINGLIFE); onDieMainPlayerHook = new OnDieMainPlayerHook(this); }