Improve exitDoor script
This commit is contained in:
parent
369a86c9d8
commit
e56982568b
1 changed files with 1 additions and 2 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue