mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
add explosion VFX and explosion physics force
This commit is contained in:
parent
c56dad1950
commit
07d802ce8f
5 changed files with 41938 additions and 0 deletions
41928
Assets/Prefabs/Explosion.prefab
Normal file
41928
Assets/Prefabs/Explosion.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Prefabs/Explosion.prefab.meta
Normal file
7
Assets/Prefabs/Explosion.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2894e2899fe860745afbc810459e2cc2
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -102,3 +102,4 @@ MonoBehaviour:
|
|||
explosionLeftoverPartsMass: 100
|
||||
smokePrefab: {fileID: 100000, guid: c5d4e25823f45c946b9dd01264b40a1b, type: 3}
|
||||
flamePrefab: {fileID: 100000, guid: 5b0110178dbbb784cab63b7529b07cc1, type: 3}
|
||||
explosionPrefab: {fileID: 100010, guid: 2894e2899fe860745afbc810459e2cc2, type: 3}
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
public GameObject smokePrefab;
|
||||
public GameObject flamePrefab;
|
||||
public GameObject explosionPrefab;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -182,6 +182,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
|
||||
// create explosion effect
|
||||
|
||||
Object.Instantiate(VehicleManager.Instance.explosionPrefab, this.transform.position, this.transform.rotation);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue