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
+1 -1
View File
@@ -14,7 +14,7 @@ GameObject:
- component: {fileID: 5073414373199561649} - component: {fileID: 5073414373199561649}
m_Layer: 0 m_Layer: 0
m_Name: CleanerFluid m_Name: CleanerFluid
m_TagString: Untagged m_TagString: Dirt
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
+4 -1
View File
@@ -66,9 +66,12 @@ public class GameScript : MonoBehaviour
if(clicked) if(clicked)
{ {
pickedUpItem.transform.position = mousePos2D; pickedUpItem.transform.position = mousePos2D;
} }
if (GameObject.FindWithTag("Dirt") == null) {
//Debug.Log("Beat the game/Next Level");
}
} }
} }