Hi
I've been trying to create a bomb. With help we've managed to find the colliders in the blast area. We are trying to call a function in the DestroyByContact script attached to the Game Object which the collider is on. If that makes sense.
The problem is that the bomb script can't see the DestroyByContact script on the game object it has found. I can't work out why. Can anyone see anything that I'm missing please?
Cheers
Bomb Script
Physics.OverlapSphere won't detect script attached to the Colliders game object
I've been trying to create a bomb. With help we've managed to find the colliders in the blast area. We are trying to call a function in the DestroyByContact script attached to the Game Object which the collider is on. If that makes sense.
The problem is that the bomb script can't see the DestroyByContact script on the game object it has found. I can't work out why. Can anyone see anything that I'm missing please?
Cheers
Bomb Script
Code (CSharp):
- public float explosionRadius = 30;...