Skip to content

Commit

Permalink
Sincronização de animação com estados
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-51 committed Nov 23, 2021
1 parent 2e71caf commit 8132a4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Assets/Resources/Player.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,6 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
--- !u!1 &1384769323432956389 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
m_PrefabInstance: {fileID: 2303267459179310260}
m_PrefabAsset: {fileID: 0}
--- !u!4 &1764391739971603295 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
Expand All @@ -475,6 +470,11 @@ Animator:
m_CorrespondingSourceObject: {fileID: 5866666021909216657, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
m_PrefabInstance: {fileID: 2303267459179310260}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1384769323432956389 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
m_PrefabInstance: {fileID: 2303267459179310260}
m_PrefabAsset: {fileID: 0}
--- !u!137 &3370611366440035658 stripped
SkinnedMeshRenderer:
m_CorrespondingSourceObject: {fileID: -5679029642739840514, guid: 3aabecf32c53147838d0a63a9d07438a, type: 3}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/EstadosPlayer/Fallen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private void DeAccelerateByRigidbody()
rb.velocity = Vector3.zero;
player.groundedVelocity = Vector3.zero;
player.SetOnAnimator("fallen", false);
player.ChangeState(new Grounded(1.2f,true));
player.ChangeState(new Grounded(2.7f, true));
}

}
Expand Down

0 comments on commit 8132a4a

Please sign in to comment.