Example #1
0
    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());
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     progressBar.fillAmount = (gm.GetRetrieveAmount() / total);
 }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     text.text  = "Voce possui " + gm.GetTotalAmount() + " Pecas!";
     text.text += "\nNo total " + gm.GetRetrieveAmount() + " Pecas foram recicladas!";
 }