Implemented end game/level trigger

This commit is contained in:
Gregory Campbell
2020-06-02 20:17:51 -04:00
parent e339c334a3
commit 6f9eae4693
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -65,10 +65,13 @@ public class GameScript : MonoBehaviour
}
if(clicked)
{
{
pickedUpItem.transform.position = mousePos2D;
}
if (GameObject.FindWithTag("Dirt") == null) {
//Debug.Log("Beat the game/Next Level");
}
}
}