mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
rename variable
This commit is contained in:
parent
e740307084
commit
21644998cb
2 changed files with 5 additions and 5 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue