From db869e541307ab3db4dc43a3e07beda641d6659e Mon Sep 17 00:00:00 2001 From: LeeJaeHyun Date: Thu, 12 Sep 2024 14:30:07 +0900 Subject: [PATCH] . --- Assets/02_Scripts/Barrel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/02_Scripts/Barrel.cs b/Assets/02_Scripts/Barrel.cs index 72ba7df..0a1497b 100644 --- a/Assets/02_Scripts/Barrel.cs +++ b/Assets/02_Scripts/Barrel.cs @@ -18,7 +18,9 @@ public class Barrel : MonoBehaviour { if (++hitCount == 3) { - + Instantiate(expEffect, transform.position, Quaternion.identity); + var rb = this.gameObject.AddComponent(); + rb.AddExplosionForce(1500.0f, transform.position, 10.0f, 1800.0f); } } }