more tut
This commit is contained in:
@@ -564,6 +564,7 @@ public partial class PlayerController : CharacterBody3D,
|
||||
|
||||
_grounded.StateEntered += OnGrounded;
|
||||
_grounded.StatePhysicsProcessing += HandleGrounded;
|
||||
_airborne.StateEntered += OnAirborne;
|
||||
_airborne.StatePhysicsProcessing += HandleAirborne;
|
||||
_onWall.StatePhysicsProcessing += HandleOnWall;
|
||||
|
||||
@@ -854,6 +855,13 @@ public partial class PlayerController : CharacterBody3D,
|
||||
///////////////////////////
|
||||
// Airborne management //
|
||||
///////////////////////////
|
||||
|
||||
public void OnAirborne()
|
||||
{
|
||||
if (_aiming.Active)
|
||||
ReduceTimeScaleWhileAiming();
|
||||
}
|
||||
|
||||
public void HandleAirborne(float delta)
|
||||
{
|
||||
MoveInAir(delta, IsGroundLike());
|
||||
|
||||
Reference in New Issue
Block a user