浏览代码

Update Character.cs

/main
mwert09 4 年前
当前提交
90e60ba3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Characters/Character.cs

2
UOP1_Project/Assets/Scripts/Characters/Character.cs


//Resets the verticalMovement while on the ground,
//so that regardless of whether the player landed from a high fall or not,
//if they drop off a platform they will always start with the same verticalMovement.
//-5f is a good value to make it so the player also sticks to uneven terrain/bumps without floating.
//-5f is a good value to make it so the player also sticks to uneven terrain/bumps without floating
if (!isJumping)
{
verticalMovement = -5f;

正在加载...
取消
保存