Skip to content

Commit 82a9de4

Browse files
committed
fix(Util): Has state logic
1 parent 9d01df1 commit 82a9de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/JCSUnity/Scripts/Util/JCS_Animator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static bool HasLayer(Animator animator, int index)
5858
public static bool HasState(Animator animator, int layer, string name)
5959
{
6060
// First check if the layer exists.
61-
if (HasLayer(animator, layer))
61+
if (!HasLayer(animator, layer))
6262
return false;
6363

6464
// Convert name to hash.

0 commit comments

Comments
 (0)