mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
smooth out switching to Jump state
This commit is contained in:
parent
f8e8f4aeb8
commit
a873cc7e21
2 changed files with 9 additions and 1 deletions
|
@ -237,6 +237,7 @@ MonoBehaviour:
|
|||
launchVelocityMultiplier: 1
|
||||
glideVelocity: 1.75
|
||||
landVelocityMultiplier: 0.5
|
||||
reEntranceTime: 0.4
|
||||
--- !u!114 &114663503631305326
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -311,6 +312,8 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 603044a9ff214434db928f6a43fd0b8a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
timeUntilAbleToSwitchState: 0.5
|
||||
timeUntilAbleToChangeAnim: 0.5
|
||||
--- !u!114 &2421064630445689714
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -323,6 +326,8 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8feb24af1a72c0446b1978fd54b64643, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
timeUntilAbleToSwitchState: 0.5
|
||||
timeUntilAbleToChangeAnim: 0.5
|
||||
--- !u!1 &1273918895060814
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -18,9 +18,12 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
[Range(0, 10)] public float glideVelocity = 2f;
|
||||
[Range(0, 10)] public float landVelocityMultiplier = 1f;
|
||||
|
||||
public float reEntranceTime = 0.4f;
|
||||
public override float TimeUntilStateCanBeEnteredFromOtherMovementState => this.reEntranceTime;
|
||||
|
||||
|
||||
public override void OnBecameActive ()
|
||||
|
||||
public override void OnBecameActive ()
|
||||
{
|
||||
base.OnBecameActive ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue