Exemplo n.º 1
0
 // Start is called before the first frame update
 private void Start() {
     _palavra = FindObjectOfType<Palavra>();
     _painel = FindObjectOfType<Painel>();
     _rigidbody2D = _palavra.GetComponent<Rigidbody2D>(); //Rigid da palavra
     _animator = startAnim.GetComponent<Animator>(); //Animator do Start
     _disablekey = FindObjectOfType<PlayerController>();
     _disablekey.keyboardAble = false;
     _palavra.gameObject.SetActive(false);
     coins = 0;
     hearts = 3;
     contador[0].text = coins + "x";
     contador[1].text =  hearts + "x";
     
 }