How to reference assets that are inside a folder?,Referencing assets in the scene
I have a folder in my scene called "Cowboy", inside it are two gameObjects, one called "Blue" and "Red".
I wanted that when Blue shoots, Red's animation goes to "RedDead", but when I do that, it says that this component doesn't exist in the current context.
How would I access this Cowboy folder and thus be able to change the animations?,I want to reference my sprites that are in a folder. Here's the idea: I have a folder called "Cowboy", inside it two gameObject (Sprites), one named "Blue" and "Red"
My code, I want to make that when the blue shoot, the animation of the red change, but I can not do that, says that "RedDead" does not exist in the current context
How to reference this?
Your answer
Follow this Question
Related Questions
Assigning a gameobject (not a prefab) to a script in the inspector 1 Answer
How to project a semi transparent copy of a gameobject? 0 Answers
Camera Issue,Camera is changing it's position in game view. 0 Answers
Input Command Issues 0 Answers
My gameobject stops moving after entering the trigger?? 2 Answers