用户:Cen查看:7 回复:15 评论:7 创建时间:2022-08-21T18:26:11
world.onPress(({ button, entity }) => {
if (button === 'crouch') {
entity.player.cameraMode = 'fps';
entity.player.cameraFovY = 0.07;
}
})
world.onRelease(async ({ button, entity }) => {
if (button === 'crouch') {
entity.player.cameraFovY = 0.25;
}
})
/*
前排提示:C即为下蹲键
适用于电脑端
*/
幕川北【氵货教程2】蹲下第1视角放大,放开第3视角
world.onPress(({ button, entity }) => {
if (button === 'crouch') {
entity.player.cameraMode = 'fps';
entity.player.cameraFovY = 0.07;
}
})
world.onRelease(async ({ button, entity }) => {
if (button === 'crouch') {
entity.player.cameraMode = 'follow';
entity.player.cameraFovY = 0.25;
}
})
/*
前排提示:C即为下蹲键
适用于电脑端
*/点赞0
评论