public void tirarArma() { if (arma != null) { Vector3 posicionObjeto = new Vector3(bot.transform.position.x + 5, bot.transform.position.y + 3, bot.transform.position.z + 2); Instantiate(arma, posicionObjeto, bot.transform.rotation); arma = null; emisorBalas.agarrarArma(arma); emisorBalas.setArma(null); this.anim.Play("tirarArma"); this.anim.SetBool("tieneArma", false); sinArmas(); } }