public void ClearAllFollowers() { Game_Manager gm = GameObject.Find("Manager").GetComponent <Game_Manager>(); //Debug.Log(nFollowers + " + " + gm.GetRetrieveAmount() + " = " + gm.GetTotalExisting()); go = false; if (nFollowers + gm.GetRetrieveAmount() >= gm.GetTotalExisting()) { go = true; } StartCoroutine(StartClearAllFollowers()); }
// Update is called once per frame void Update() { progressBar.fillAmount = (gm.GetRetrieveAmount() / total); }
// Update is called once per frame void Update() { text.text = "Voce possui " + gm.GetTotalAmount() + " Pecas!"; text.text += "\nNo total " + gm.GetRetrieveAmount() + " Pecas foram recicladas!"; }