} //Fim Update void OnCollisionEnter(Collision col) { //if(col.gameObject.name == "Terreno") //{ //GameObject[] allObjects = GameObject.FindObjectsOfType<GameObject> (); if (col.gameObject.tag == "Coletavel") { sfx.Energy(); col.gameObject.SetActive(false); Fuel.value += 20f; } if (col.gameObject && Person.transform.localPosition.y >= 1f) { pular1 = false; puloCont = 3; } else if (col.gameObject) { pular1 = false; puloCont = 0; } //} } //fim colision with.