A little bit about how ill use it. my enemy car will be the target and if it gets hit 3-4 times by my player car, it’ll die.
the error i get is:
(5,52): BCE0044: expecting }, found ‘’.
(5,52): BCE0044: expecting }, found ‘’.
public var explosionPrefab : Transform;
function OnCollisionEnter(collidedObject : Collision) {
if (collidedObject.gameObject.tag == "Finish") {
Destroy(collidedObject.gameObject);