diff --git a/MrBigsock/Assets/Code/InteractionSystem/Door.cs b/MrBigsock/Assets/Code/InteractionSystem/Door.cs index d90a8a7f49ba39a438a01294923b878ba024ba07..7ce964c2d521220b255d6fb35c7f625b237a1ec8 100644 --- a/MrBigsock/Assets/Code/InteractionSystem/Door.cs +++ b/MrBigsock/Assets/Code/InteractionSystem/Door.cs @@ -19,7 +19,7 @@ namespace BigSock.Interact { public bool Interact(Interactor interactor) { if(i > 0)enemies = GameObject.FindGameObjectsWithTag((i - 1).ToString()); - else if (i > 0) enemies = GameObject.FindGameObjectsWithTag((0).ToString()); + else if (i == 0) enemies = GameObject.FindGameObjectsWithTag((i).ToString()); if (enemies.Length == 0) { Debug.Log("Opening door!");