We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6bc9a commit b6fa39eCopy full SHA for b6fa39e
Animation_Triggers
@@ -0,0 +1,24 @@
1
+using System.Collections;
2
+using System.Collections.Generic;
3
+using UnityEngine;
4
+
5
+public class Animation_Triggers : MonoBehaviour
6
+{
7
+ [SerializeField] private Animator myAnimationController;
8
9
+ private void OnTriggerEnter (Collider other)
10
+ {
11
+ if (other.CompareTag("Player"))
12
+ { //ADD YOUR PARAMETERS THERE TO PLAY ANIMATION
13
+ myAnimationController. SetBool("YOUR PARAMETERS", true);
14
+ }
15
16
17
+ private void OnTriggerExit (Collider other)
18
19
20
21
+ myAnimationController.SetBool("playSpin2", false);
22
23
24
+}
0 commit comments