mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
PostProcessing & Universal RP
added PostProcessing and Universal Render Pipeline from the Packet Manager. You can disable PostProcessing (If it lags too much) by disabling PostProcessingVolume in the Hierarchy. added some fancy lights to the test scnee added dirt texture to the camera added bloom to the lights added light to explosion from grenade
This commit is contained in:
@@ -10,6 +10,8 @@ public class Grenade : MonoBehaviour
|
||||
[SerializeField] float explosionForce = 500f;
|
||||
[SerializeField] float grenadeRadius = 3f;
|
||||
[SerializeField] bool hasExploded = false;
|
||||
[Tooltip("After how many seconds the explosion Gameobject gets deleted!")]
|
||||
[SerializeField] float lengthOfExplosion = 1;
|
||||
private float countdown;
|
||||
|
||||
[Header("Explosion GameObject")]
|
||||
@@ -46,7 +48,7 @@ public class Grenade : MonoBehaviour
|
||||
// Spawns explosion particle
|
||||
GameObject spawnedExplosion = Instantiate(explodeParticle, transform.position, transform.rotation);
|
||||
// Destroys explosion particle after on second
|
||||
Destroy(spawnedExplosion, 1);
|
||||
Destroy(spawnedExplosion, lengthOfExplosion);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user