用户:
北斗七星不是屑awa查看:0 回复:0 评论:0 创建时间:2023-10-25T17:46:11
谁会把x-2后过20秒自动x+2啊,求求了
var hxhdoor02_on_or_off = 0;
world.querySelectorAll('.玻璃板').forEach((hxhdoor02)=>{
hxhdoor02.enableInteract = true
hxhdoor02.interactHint = '检票'
hxhdoor02.interactRadius = 5
hxhdoor02.interactColor = [255,255,255]
hxhdoor02.onInteract(()=>{
hxhdoor02_on_or_off++
if(hxhdoor02_on_or_off%2==1){
world.querySelectorAll('.玻璃板').forEach(async(hxhdoor02_1)=>{
hxhdoor02_1.position.x -= 2
})
}else{
world.querySelectorAll('.玻璃板').forEach(async(hxhdoor02_1)=>{
hxhdoor02_1.position.x += 2
})
}
})
})