Using Object Pooling for platforms, how can I activate the coins that are on the platform prefab again, after they are picked up?
I am making a 2D endless runner.
I have made a platform prefab with coins laying on it. When the platform goes off screen, it gets set to inactive, and when it needs to be brought in again it gets activated and placed in front of the player.
When the player picks up the coins, I've set the coins to be .SetActive(false) thinking that when the whole prefab gets set to active again, the coins would all be activated. But that seems not to be the case.
I've been trying to crack this for hours now but no script i write seems to be working. Any help or guidance would be highly appreciated.
Image Below Showcases the Prefab.
Thank you so much.
Your answer
Follow this Question
Related Questions
[2D Game] My coins won't disappear when touched,My coins won't disappear in my 2D game 1 Answer
How to open and close a "message box"? 0 Answers
Animate child object IsActive and other properties 1 Answer
Change angle of player when changing slope angles 0 Answers
Problem with player dead and respawn 2 Answers