/// <summary> /// Kill the player with a death sound and a small splash of pixel blood /// </summary> public void Kill() { // TODO - visual death effects // Death sound effect if (deathSound != null) { SoundEffectScript.PlaySoundEffect(transform.position, deathSound); } // Make a pixel blood splash effect for a dramatic death ParticleEffectScript.Splash(bloodParticlePrefab, transform, 25, 0.1f, 75.0f, 75.0f, 300.0f); // TODO - respawn player and reset level }