We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5881d92 commit 9e43452Copy full SHA for 9e43452
2 files changed
Assets/HelloMarioFramework/Script/Enemy/Enemy.cs
@@ -32,7 +32,7 @@ public class Enemy : Stompable
32
private int collisionCount = 0;
33
34
//Animator hash values
35
- private static int chaseHash = Animator.StringToHash("Chase");
+ protected static int chaseHash = Animator.StringToHash("Chase");
36
private static int stompHash = Animator.StringToHash("Stomp");
37
private static int speedHash = Animator.StringToHash("Speed");
38
private static int groundHash = Animator.StringToHash("onGround");
Assets/HelloMarioFramework/Script/Enemy/Galoomba.cs
@@ -51,6 +51,7 @@ private IEnumerator UnFlip()
51
flipped = false;
52
yield return new WaitForSeconds(1f);
53
cooldown = false;
54
+ animator.SetBool(chaseHash, false);
55
}
56
57
0 commit comments