From 362435fc7046701478d8b0d71b8eff0181a92e11 Mon Sep 17 00:00:00 2001 From: Denis NUTIU Date: Sat, 31 Aug 2019 11:45:22 +0300 Subject: [PATCH] Fix DestrictibleWall variable names --- Assets/Scripts/src/Wall/DestructibleWall.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/src/Wall/DestructibleWall.cs b/Assets/Scripts/src/Wall/DestructibleWall.cs index 47aac6e..5c64c44 100644 --- a/Assets/Scripts/src/Wall/DestructibleWall.cs +++ b/Assets/Scripts/src/Wall/DestructibleWall.cs @@ -11,14 +11,14 @@ namespace src.Wall private bool _spawnExit; private bool _spawnUpgrade; private UpgradeManager _upgradeManager; - private GameObject explosionPrefab; - private GameObject exitDoorPrefab; + private GameObject _explosionPrefab; + private GameObject _exitDoorPrefab; private void Start() { _upgradeManager = GameManager.instance.GetUpgradeManager(); - explosionPrefab = PrefabAtlas.BombExplosion; - exitDoorPrefab = PrefabAtlas.ExitDoor; + _explosionPrefab = PrefabAtlas.BombExplosion; + _exitDoorPrefab = PrefabAtlas.ExitDoor; } public void SpawnsExit() @@ -38,11 +38,11 @@ namespace src.Wall { var currentPosition = transform.position; Destroy(GetComponent()); - Instantiate(explosionPrefab, currentPosition, Quaternion.identity); + Instantiate(_explosionPrefab, currentPosition, Quaternion.identity); if (_spawnExit) { DebugHelper.LogInfo($"Destructible spawned exit {transform.position}"); - Instantiate(exitDoorPrefab, currentPosition, Quaternion.identity); + Instantiate(_exitDoorPrefab, currentPosition, Quaternion.identity); } else if (_spawnUpgrade) {