Trying to play a different using animation based on type of gameobject.
So basically I want to get they type of interactible, and Play a different Using animation based on the type. (I.E. Open door, open a box, pull a switch) I believe I need read the GameObject.tag, but am not quite sure how to do so from the void Using(), and worse, I am lost when it comes to How to pause until the player animation is done to continue with the object animation.
Basically, I walk up to a chest, click the chest, this plays the players open chest animation, waiting until that is done the go back to the gameobject script and then play the chest opening animation. (or what ever object it is.)
Your answer
![](https://koobas.hobune.stream/wayback/20220612064929im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Spawning a number of enemies while condition is true 0 Answers
Any reason why this method of adding gameobjects with this tag to an array won't work? 0 Answers
How to change the alpha of every GameObject with the same Tag ? 1 Answer
How can I make sure that the gameObject that collides with the FPSController is the one I need? 0 Answers