Please help me to solve this in unity C# scripts (TriggerCounter and OnTriggerEnter)
Click on the link below which help you understand what I want to do https://youtu.be/-Y8PAl40EVQ
What I want to do in unity is when I collect four coins, the gate in the air should appear automatically. But I am not sure with scripts(C#)and what to do that. I would like to use coins and gate as prefabs (Public function) Please help me and show me the correct example of this!! I really need your help Save my life everyone!!!!!!
There is something wrong with two scripts Please help me..............
I'm not gonna write the code out for you, but you could always mess with SetActive(). There are ways to do it from activating or rendering. Post some code if you have it already and maybe someone could help add in what it needs.
Quick Tip: $$anonymous$$ake an int counter and increment it every time a coin is collected. When it reaches the desired amount, make the gate visible. Check out the docs for SetActive()