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 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<Collider2D>();
}
/* Trigger the next level and destroy itself. */