Improve exitDoor script

This commit is contained in:
Denis-Cosmin Nutiu 2019-08-26 21:41:58 +03:00
parent 369a86c9d8
commit e56982568b

View file

@ -1,5 +1,6 @@
using System; using System;
using src.Base; using src.Base;
using src.Helpers;
using src.Managers; using src.Managers;
using UnityEngine; using UnityEngine;
@ -8,12 +9,10 @@ namespace src.Wall
public class ExitDoor : GameplayComponent public class ExitDoor : GameplayComponent
{ {
private GameManager _gameManager; private GameManager _gameManager;
private Collider2D _collider2D;
private void Start() private void Start()
{ {
_gameManager = GameManager.instance; _gameManager = GameManager.instance;
_collider2D = GetComponent<Collider2D>();
} }
/* Trigger the next level and destroy itself. */ /* Trigger the next level and destroy itself. */