예제 #1
0
    private void SetupGunBar()
    {
        Image gunBar = GameObject.FindGameObjectWithTag("gunPlein").GetComponent <Image>();

        barreGun            = new GunBar(gunBar);
        onDieMainPlayerHook = new OnDieMainPlayerHook(this);
    }
예제 #2
0
    protected override void SetupLifeBar()
    {
        const float PLAYERMAXSTARTINGLIFE = 100;
        Image       barreVie = GameObject.FindGameObjectWithTag("viePleine").GetComponent <Image>();

        barreDeVie          = new LifeBar(barreVie, PLAYERMAXSTARTINGLIFE);
        onDieMainPlayerHook = new OnDieMainPlayerHook(this);
    }