Skip to content
Snippets Groups Projects
Commit 039f77e5 authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

fixed wrong else if statement

parent 1c08e23d
No related branches found
No related tags found
2 merge requests!76Juliuses nye super branch,!67maybe fixed spawning of enemies
......@@ -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!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment