I’m working on a Marble Madness type of game where you are trying to navigate a marble through a level within a time limit. Throughout the level are “time pellets” which give you extra time (I’m mixing in a little N+)
I made a prefab with a sphere mesh, trigger collider, javascript and audio source components. When you trigger the pellet it gives you extra time, plays the sound and then disables itself (shut off renderer, boolean eaten = true).
Since a level might have several of these pellets I’m assuming it could be wasteful to have an Audio Source in each one, so I’m wondering if I should be looking for a better approach to this?
You can see what I’m working on here: http://marblegame.tumblr.com