Implemented end game/level trigger
This commit is contained in:
@@ -14,7 +14,7 @@ GameObject:
|
||||
- component: {fileID: 5073414373199561649}
|
||||
m_Layer: 0
|
||||
m_Name: CleanerFluid
|
||||
m_TagString: Untagged
|
||||
m_TagString: Dirt
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user