Question by
loganaz · Mar 07, 2017 at 12:51 AM ·
scripting problembuttonexplosionpressed
Explode on button down?
I'm creating a simple game and would like to explode a bomb on keyboard button down.
I've managed to find an explosion script that I modified that explodes killing any player in it's radius. The script is automatically activated upon runtime though and would like to create a prefab button that can be pushed activating the bomb.
I had modeled a button in blender already.
Any help is GREATLY appreciated. Thank you.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612112616im_/https://answers.unity.com/themes/thub/images/avi.jpg)