void GenerateZombie() { Vector3 pos = CalcularPosicaoMaisDistanteDoPlayer(); //Collider[] colliders = Physics.OverlapSphere(pos, 10, layerZUmbi); /*while(colliders.Length>3) * { * pos = RandomPos(); * colliders = Physics.OverlapSphere(pos, 15, layerZUmbi); * } */ Zumbizao zumbi = Instantiate(Bosszombie, pos, transform.rotation).GetComponent <Zumbizao>(); scriptUI.ApareceTextoChefe(); }