First of all you can write:
if (DentroEscalerilla)
{
// Stuff
}
You don't need to double compare it with "== true".
About your problem:
How big is the cube? Does it fill the entire ladder "area"? If not, it will call "OnTriggerExit" if you climb too high and exit the trigger.
Also physics are still running while you're overriding your position. While climbing disable it via:
this.rigidbody.useGravity = false;
↧