bool ColocaTesouro(Area a, AreaDataPool pool) { if (a.tipo != 1 && Random.Range(0f, 101f) <= pool.chanceTesouro) { a.ColocaObjeto(pool.tesouroAleatorio()); return(true); } return(false); }
bool ColocaInimigos(Area a, AreaDataPool pool) { if (Random.Range(0f, 101f) <= pool.chanceInimigo) { a.ColocaInimigo(pool.inimigoAleatorio()); return(true); } return(false); }
/***********************************/ /****Metodos que colocam as coisas ***/ void ColocaParedes(Area a, AreaDataPool pool) { Interactable parede = pool.paredeAleatoria(); a.ColocaObjeto(parede); }