From 21644998cb007c776431d8794e8518efec323556 Mon Sep 17 00:00:00 2001 From: in0finite Date: Wed, 3 Jun 2020 01:10:38 +0200 Subject: [PATCH] rename variable --- Assets/Scripts/Behaviours/Vehicles/Vehicle.cs | 6 +++--- Assets/Scripts/Behaviours/Vehicles/Vehicle_Spawning.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs b/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs index 58cfdb72..805a7f81 100644 --- a/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs +++ b/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs @@ -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++) { diff --git a/Assets/Scripts/Behaviours/Vehicles/Vehicle_Spawning.cs b/Assets/Scripts/Behaviours/Vehicles/Vehicle_Spawning.cs index fe70f5b4..9f3c5220 100644 --- a/Assets/Scripts/Behaviours/Vehicles/Vehicle_Spawning.cs +++ b/Assets/Scripts/Behaviours/Vehicles/Vehicle_Spawning.cs @@ -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> m_highDetailMeshObjectsToUpdate = new List>(); private readonly List _wheels = new List(); @@ -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);