rename variable

This commit is contained in:
in0finite 2020-06-03 01:10:38 +02:00
parent e740307084
commit 21644998cb
2 changed files with 5 additions and 5 deletions

View file

@ -190,9 +190,9 @@ namespace SanAndreasUnity.Behaviours.Vehicles
this.OnDisable_Radio();
if (m_highDetailMeshesParent != null)
if (this.HighDetailMeshesParent != null)
{
Destroy(m_highDetailMeshesParent.gameObject);
Destroy(this.HighDetailMeshesParent.gameObject);
}
}
@ -499,7 +499,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
void UpdateHighDetailMeshes()
{
m_highDetailMeshesParent.SetPositionAndRotation(this.transform.position, this.transform.rotation);
this.HighDetailMeshesParent.SetPositionAndRotation(this.transform.position, this.transform.rotation);
for (int i = 0; i < m_highDetailMeshObjectsToUpdate.Count; i++)
{

View file

@ -274,7 +274,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
private static GameObject s_highDetailMeshesContainer;
private Transform m_highDetailMeshesParent;
public Transform HighDetailMeshesParent { get; private set; }
private List<KeyValuePair<Transform, Transform>> m_highDetailMeshObjectsToUpdate = new List<KeyValuePair<Transform, Transform>>();
private readonly List<Wheel> _wheels = new List<Wheel>();
@ -541,7 +541,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
}
GameObject parent = new GameObject(this.gameObject.name);
m_highDetailMeshesParent = parent.transform;
this.HighDetailMeshesParent = parent.transform;
parent.transform.parent = s_highDetailMeshesContainer.transform;
parent.transform.SetPositionAndRotation(this.transform.position, this.transform.rotation);