- Home /
Question by
jackallen1556 · Apr 19, 2018 at 11:05 PM ·
prefabcollision detection
Help with collision detection with a prefab on a gamemanager
New to coding but what I'm trying to do is when the slicing mechanic or trail renderer collides with the prefab in my game manager I want this to be destroyed and call the death function if a certain prefab in this case the bomb is not hit then keep playing the game.
if (isSliced == true) {
Destroy (GameManager.Instance.Bomb);
GameManager.Instance.Death ();
Debug.Log ("im destroyed");
}
In this case, the bomb is the prefab located on my gamemanager
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612161137im_/https://answers.unity.com/themes/thub/images/avi.jpg)