public void DestroyVehicle(Vector3 impactPosition)
 {
     collider.enabled             = false;
     vehicleBody.collider.enabled = false;
     playDestructionSounds();
     explode(impactPosition);
     slingshot.Deactivate();
     vehicleAudio.VehicleWasDestroyed();
     vehicleAudio.enabled = false;
     destroyed            = true;
 }
Пример #2
0
 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);
 }
Пример #3
0
 private void destroyVehicle()
 {
     destroyed = true;
     vehicleAudio.VehicleWasDestroyed();
     vehicleAudio.enabled = false;
 }