private void OnTriggerEnter(Collider collider) { CarModel otherCar = collider.GetComponent <CarModel>() as CarModel; if (otherCar != null) { otherCar.ApplyPowerup(this.powerupType); Destroy(this.gameObject); } }