.
This commit is contained in:
parent
447b7f6737
commit
db869e5413
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user