From e56982568bc134b420e86eb9ded5ccf6abef053c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Mon, 26 Aug 2019 21:41:58 +0300 Subject: [PATCH] Improve exitDoor script --- Assets/Scripts/src/Wall/ExitDoor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/src/Wall/ExitDoor.cs b/Assets/Scripts/src/Wall/ExitDoor.cs index b0d0444..db16603 100644 --- a/Assets/Scripts/src/Wall/ExitDoor.cs +++ b/Assets/Scripts/src/Wall/ExitDoor.cs @@ -1,5 +1,6 @@ using System; using src.Base; +using src.Helpers; using src.Managers; using UnityEngine; @@ -8,12 +9,10 @@ namespace src.Wall public class ExitDoor : GameplayComponent { private GameManager _gameManager; - private Collider2D _collider2D; private void Start() { _gameManager = GameManager.instance; - _collider2D = GetComponent(); } /* Trigger the next level and destroy itself. */