mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 12:58:27 +00:00
destroy high detail mesh objects when vehicle is destroyed
This commit is contained in:
parent
23e75f180c
commit
d9a728b244
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
s_vehicles.Remove(this);
|
||||
|
||||
this.OnDisable_Radio();
|
||||
|
||||
if (m_highDetailMeshesParent != null)
|
||||
{
|
||||
Destroy(m_highDetailMeshesParent.gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
|
Loading…
Add table
Reference in a new issue