public void DestroyVehicle(Vector3 impactPosition) { collider.enabled = false; vehicleBody.collider.enabled = false; playDestructionSounds(); explode(impactPosition); slingshot.Deactivate(); vehicleAudio.VehicleWasDestroyed(); vehicleAudio.enabled = false; destroyed = true; }
public void DestroyVehicle(Vector3 impactPosition) { resetCameras(); collider.enabled = false; vehicleBody.collider.enabled = false; playDestructionSounds(); explode(impactPosition); slingshot.Deactivate(); destroyed = true; vehicleAudio.VehicleWasDestroyed(); vehicleAudio.enabled = false; Invoke("requestRespawn", 3f); }
private void destroyVehicle() { destroyed = true; vehicleAudio.VehicleWasDestroyed(); vehicleAudio.enabled = false; }