浏览代码

Update Character.cs

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

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


{
gravityContributionMultiplier += Time.deltaTime * gravityComebackMultiplier;
}
//Reduce the influence of the gravity while holding the Jump button
if (isJumping)
{

gravityContributionMultiplier *= gravityDivider; //Reduce the gravity effect
}
}
//Calculate the final verticalMovement
if (!characterController.isGrounded)
{

正在加载...
取消
保存