void Start() { gm = GameObject.Find("GameManager").GetComponent <GameManager> (); cm = GameObject.Find("GameManager").GetComponent <Criptomoedas> (); tb = GameObject.Find("GameManager").GetComponent <Trabalhadores> (); rc = GameObject.Find("GameManager").GetComponent <Recompesas> (); saveMeuDinheiro = PlayerPrefs.GetFloat("SaveMeuDinheiro"); gm.valorMeuDinheiro = saveMeuDinheiro; SaveMeuBitcoin = PlayerPrefs.GetInt("SaveMeuBitcoin"); gm.valorMeuBitcoin = SaveMeuBitcoin; SaveMeuDodgecoin = PlayerPrefs.GetInt("SaveMeuDodgecoin"); gm.valorMeuDodgecoin = SaveMeuDodgecoin; SaveMeuLitecoin = PlayerPrefs.GetInt("SaveMeuLitecoin"); gm.valorLitecoin = SaveMeuLitecoin; SaveQtdTrabalhadores = PlayerPrefs.GetInt("SaveQtdTrabalhadores"); tb.qtdTrabalhadores = SaveQtdTrabalhadores; SaveValorTrabalhadores = PlayerPrefs.GetInt("SaveValorTrabalhadores"); tb.valorTrabalhador = SaveValorTrabalhadores; SavePodeTrabalhar = PlayerPrefs.GetInt("SaveBoolTrabalhar"); tb.podeMinerar = SavePodeTrabalhar; PlayerPrefs.SetInt("SaveBoolTrabalhar", tb.valorTrabalhador); gm.AtualizaValores(); cm.AtualizarCotacaoCoins(); tb.txtQtdTrabalhadores.text = tb.qtdTrabalhadores.ToString(); if (tb.podeMinerar == 3) { StartCoroutine(tb.QtdTrabalhadores()); } }
// Use this for initialization void Start() { txtQtdTrabalhadores.text = qtdTrabalhadores.ToString(); gm = GameObject.Find("GameManager").GetComponent <GameManager> (); cm = GameObject.Find("GameManager").GetComponent <Criptomoedas> (); tempoTrabalhador = 5; }
void Start() { gm = GameObject.Find("GameManager").GetComponent <GameManager> (); cm = GameObject.Find("GameManager").GetComponent <Criptomoedas> (); tb = GameObject.Find("GameManager").GetComponent <Trabalhadores> (); rc = GameObject.Find("GameManager").GetComponent <Recompesas> (); StartCoroutine(SalvarOJogo()); }
// Use this for initialization void Start() { cm = GameObject.Find("GameManager").GetComponent <Criptomoedas> (); gm = GameObject.Find("GameManager").GetComponent <GameManager> (); tb = GameObject.Find("GameManager").GetComponent <Trabalhadores> (); linguote = GameObject.Find("IMG linguote").GetComponent <Image> (); picareta = GameObject.Find("IMG picareta").GetComponent <Image> (); temRec1 = false; temRec2 = false; temRec3 = false; }