// Start is called before the first frame update private void OnTriggerEnter(Collider other) { if (arma == null) { arma = other.GetComponent <Arma>(); if (!arma.maleable) { return; } arma.Calienta(-300f); GameObject.Find("RigidBodyFPSController").GetComponent <MonoBehaviour>().enabled = false; GameObject.Find("guia").GetComponent <HoldItems>().UnPick(other.transform); GameObject.Find("guia").GetComponent <HoldItems>().enabled = false; Cursor.lockState = CursorLockMode.None; imagen.gameObject.SetActive(true); martillo.gameObject.SetActive(true); cam.transform.gameObject.SetActive(true); arma.transform.SetPositionAndRotation(posArma.position, posArma.rotation); } }