destroy high detail mesh objects when vehicle is destroyed

This commit is contained in:
in0finite 2020-06-02 23:56:36 +02:00
parent 23e75f180c
commit d9a728b244

View file

@ -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()