This commit is contained in:
LeeJaeHyun 2024-09-12 14:30:07 +09:00
parent 447b7f6737
commit db869e5413

View File

@ -18,7 +18,9 @@ public class Barrel : MonoBehaviour
{ {
if (++hitCount == 3) if (++hitCount == 3)
{ {
Instantiate(expEffect, transform.position, Quaternion.identity);
var rb = this.gameObject.AddComponent<Rigidbody>();
rb.AddExplosionForce(1500.0f, transform.position, 10.0f, 1800.0f);
} }
} }
} }