.
This commit is contained in:
parent
193fedc041
commit
49b8b39786
@ -24,7 +24,9 @@ public class Barrel : MonoBehaviour
|
|||||||
// 랜덤한 좌표값을 계산
|
// 랜덤한 좌표값을 계산
|
||||||
Vector3 pos = transform.position + Random.insideUnitSphere;
|
Vector3 pos = transform.position + Random.insideUnitSphere;
|
||||||
|
|
||||||
rb.AddExplosionForce(1500.0f, pos, 10.0f, 1800.0f);
|
rb.AddExplosionForce(1500.0f, pos, 10.0f, 1000.0f);
|
||||||
|
|
||||||
|
Destroy(this.gameObject, 2.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user