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

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