Exemplo n.º 1
0
    public void Fundir(LixoMisturado outro)
    {
        int nivel = this.nivel + outro.nivel;
        if (nivel > nivelMaximo)
        {
            nivel = nivelMaximo;
        }

        _nivel = nivel;
        Iniciar ();
    }
Exemplo n.º 2
0
 public bool PodeFundir(LixoMisturado outro)
 {
     return !(this.estaNivelMaximo || outro.estaNivelMaximo);
 }
Exemplo n.º 3
0
 void Awake()
 {
     tamanho			= GetComponent<RectTransform>().sizeDelta;
     imagem			= GetComponent<Image>();
     corNomal		= imagem.color;
     //texto			= GetComponentInChildren<Text>();
     lixoMisturado	= new LixoMisturado(
         ObjEmpreendimentos.nivelMinimoLixo);
     //AjeitarTexto();
     Adicionar();
 }