2D横版跳跃游戏第二节

跳跃系统 按空格让玩家跳跃起来 **原理:将刚体y的速度等于跳跃的速度 ** 在C#Move脚本里添加代码web (1)先设置跳跃的速度ide public float jumpVelocity = 10;//跳跃的速度 (2)让玩家跳起来 将刚体y的速度设置成跳跃的速度便可svg velocity.y = jumpVelocity; rgd.velocity = velocity; (3)设置i
相关文章
相关标签/搜索