function OnCollisionEnter (collision : Collision) {
if(collision.gameObject.name == "Player") {
ItemSpawner.bombCount += quantity;
Destroy (gameObject);
}
}
I’ve checked everything over and over, but this script does nothing. Any ideas?