网站首页
编程语言
数据库
系统相关
其他分享
编程问答
Collision2D
2024-07-10
跳跃系统的完善
Jump()privatevoidJump(){ if(Input.GetKey(KeyCode.Z)) { jumpTimer-=Time.deltaTime; if(jumpTimer>0) { rigi.AddForce(newVector2(0,jumpForce),ForceMode2D.Force);