Skip to content
Snippets Groups Projects

maybe fixed spawning of enemies

Merged Robin Ruud Kristensen requested to merge ruud1 into main
Files
13
@@ -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!");
Loading