Character change is not working
So I have this box Gameobject with collider (and trigger) and Player gameobject with two child gameobjects with colliders also (first one is the default). I want that when player collides the box the characters gameobject changes to the other one.
I can't seem to get it to work with script. First I made two public gameobject variables and referenced the child gameobjects and tried to use setactive(false) & setactive(true) in the script. Not working.
Next I tried to create a list where I added the children and then tried setactive(). Not working.
So I appreciate if you could give me a hint for this problem, thanks.
Please, provide the script you currently have. We will help you fix it.
Your answer
Follow this Question
Related Questions
Set SpriteRenderer of Child Objects on and off 0 Answers
Object passes through childrens' boxcolliders 1 Answer
Setting OnTriggerEnter to a second object collider 2 Answers
Trigger and Rotation Issue 0 Answers
on trigger enter 2d not working 0 Answers