|
@@ -1512,17 +1512,6 @@ public class PlayerController : MoveCharacter
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- if (!foot.TrigGround && !canFly)
|
|
|
|
|
- {
|
|
|
|
|
- if (rb.velocity.y > 0)
|
|
|
|
|
- {
|
|
|
|
|
- rb.velocity += Vector3.up * extraRiseGravity * Time.deltaTime;
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- rb.velocity += Vector3.up * extraFallGravity * Time.deltaTime;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
isClickBtnRush = false;
|
|
isClickBtnRush = false;
|
|
|
isKeepBtnRush = false;
|
|
isKeepBtnRush = false;
|
|
|
isClickBtnJump = false;
|
|
isClickBtnJump = false;
|
|
@@ -1860,8 +1849,15 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
{
|
|
|
velocity = new Vector3(0, velocity.y, velocity.z);
|
|
velocity = new Vector3(0, velocity.y, velocity.z);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (velocity.y > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ velocity += Vector3.up * extraRiseGravity * Time.deltaTime;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ velocity += Vector3.up * extraFallGravity * Time.deltaTime;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
return velocity;
|
|
return velocity;
|
|
|
}
|
|
}
|
|
|
|
|
|