Esempio n. 1
0
 bool ColocaTesouro(Area a, AreaDataPool pool)
 {
     if (a.tipo != 1 && Random.Range(0f, 101f) <= pool.chanceTesouro)
     {
         a.ColocaObjeto(pool.tesouroAleatorio());
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 bool ColocaInimigos(Area a, AreaDataPool pool)
 {
     if (Random.Range(0f, 101f) <= pool.chanceInimigo)
     {
         a.ColocaInimigo(pool.inimigoAleatorio());
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
    /***********************************/


    /****Metodos que colocam as coisas ***/

    void ColocaParedes(Area a, AreaDataPool pool)
    {
        Interactable parede = pool.paredeAleatoria();

        a.ColocaObjeto(parede);
    }