From bd75cf03450cd5dbdf2cd4d4f2831cfc30950c52 Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:23:24 -0400 Subject: [PATCH] TurretUIPrefab -> turretUIPrefab --- .../_Common/Controllers/TankController/TankTurret.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Mirror/Examples/_Common/Controllers/TankController/TankTurret.cs b/Assets/Mirror/Examples/_Common/Controllers/TankController/TankTurret.cs index 9d6a5e1b0..c04494cfe 100644 --- a/Assets/Mirror/Examples/_Common/Controllers/TankController/TankTurret.cs +++ b/Assets/Mirror/Examples/_Common/Controllers/TankController/TankTurret.cs @@ -49,7 +49,7 @@ public enum ControlOptions : byte Material cachedMaterial; [Header("Prefabs")] - public GameObject TurretUIPrefab; + public GameObject turretUIPrefab; public GameObject projectilePrefab; [Header("Components")] @@ -244,10 +244,10 @@ Transform FindDeepChild(Transform aParent, string aName) // This avoids conflicts with user-created prefabs that may have the same name // and avoids polluting the user's project with Resources. // This is not recommended for production code...use Resources.Load or AssetBundles instead. - if (TurretUIPrefab == null) + if (turretUIPrefab == null) { string path = UnityEditor.AssetDatabase.GUIDToAssetPath("4d16730f7a8ba0a419530d1156d25080"); - TurretUIPrefab = UnityEditor.AssetDatabase.LoadAssetAtPath(path); + turretUIPrefab = UnityEditor.AssetDatabase.LoadAssetAtPath(path); } if (projectilePrefab == null) @@ -441,8 +441,8 @@ public override void OnStartServer() { } public override void OnStartLocalPlayer() { - if (TurretUIPrefab != null) - turretUI = Instantiate(TurretUIPrefab); + if (turretUIPrefab != null) + turretUI = Instantiate(turretUIPrefab); if (turretUI != null) {