onTriggerEnter(event: ITriggerEvent){
if(event.otherCollider.node == this.cc2){
this.cc2.getComponent(CharacterController).enabled = false
this.cc2.getComponent(CapsuleCollider).enabled = true
if(this.cc2.parent != this.node){
this.xx1 = this.cc2.position
console.log(this.xx1 + 's')
this.node.inverseTransformPoint(this.zz1,this.xx1)
console.log(this.zz1 + 'a')
this.node.addChild(this.cc2)
}
if(this.cc2.parent == this.node){
this.cc2.setPosition(this.zz1)
}
console.log(this.zz1 + 'z')
console.log(this.xx1 + 's')
}
}