// Update is called once per frame void Update() { _StatusBarra = this.GetComponent <StatusBarra>(); barraDeProgresso.transform.localScale = new Vector3(_StatusBarra.PegarTamanhoBarra(ValorAtual, MaxProgresso), barraDeProgresso.transform.localScale.y, barraDeProgresso.transform.localScale.z); textoProgresso.text = _StatusBarra.PegarPorcentagemBarra(ValorAtual, MaxProgresso, 100) + "%"; if (ValorAtual < MaxProgresso) { ValorAtual = gerenciadordePontos.pontos; } else { textoProgresso.text = "2X"; } }
// Use this for initialization void Start() { _statusBarra = this.gameObject.GetComponent<StatusBarra> (); }
// Start is called before the first frame update void Start() { statusBarra = this.gameObject.GetComponent <StatusBarra>(); }