diff --git a/Game/Assets/Scripts/BedroomTask.cs b/Game/Assets/Scripts/BedroomTask.cs new file mode 100644 index 0000000..395a40d --- /dev/null +++ b/Game/Assets/Scripts/BedroomTask.cs @@ -0,0 +1,31 @@ +/* +Author: Reza +Date: 3/2/25 +Description: To track if cleaning/exploring bedroom task is done before allowing player to open door +*/ + + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.XR.Interaction.Toolkit.Interactables; + +public class BedroomTask : MonoBehaviour +{ + public GameObject door; + public XRGrabInteractable doorInteractable; + + private bool taskCompleted = false; + + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Game/Assets/Scripts/BedroomTask.cs.meta b/Game/Assets/Scripts/BedroomTask.cs.meta new file mode 100644 index 0000000..c4b52c6 --- /dev/null +++ b/Game/Assets/Scripts/BedroomTask.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5400e1a957408e941ba95a252e2d15b0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Game/Assets/Scripts/GameManager.cs b/Game/Assets/Scripts/GameManager.cs new file mode 100644 index 0000000..6d35e80 --- /dev/null +++ b/Game/Assets/Scripts/GameManager.cs @@ -0,0 +1,24 @@ +/* +Author: Reza +Date: 3/2/25 +Description: To keep track of tasks and game mechanics +*/ + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class GameManager : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Game/Assets/Scripts/GameManager.cs.meta b/Game/Assets/Scripts/GameManager.cs.meta new file mode 100644 index 0000000..7cde606 --- /dev/null +++ b/Game/Assets/Scripts/GameManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e01448acf10665b469bdbd43de140feb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Game/Assets/Scripts/Trash.cs b/Game/Assets/Scripts/Trash.cs new file mode 100644 index 0000000..e3c8083 --- /dev/null +++ b/Game/Assets/Scripts/Trash.cs @@ -0,0 +1,24 @@ +/* +Author: Reza +Date: 4/2/25 +Description: To track how much trash has been thrown in the trashbin +*/ + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Trash : MonoBehaviour +{ + public static int trashCollected = 0; + + private void OnTriggerEnter(Collider other) + { + if (other.gameObject.CompareTag("TrashBin")) + { + trashCollected++; + Debug.Log("Trash thrown in the bin! Count: " + trashCollected); + Destroy(gameObject); + } + } +} diff --git a/Game/Assets/Scripts/Trash.cs.meta b/Game/Assets/Scripts/Trash.cs.meta new file mode 100644 index 0000000..27576bc --- /dev/null +++ b/Game/Assets/Scripts/Trash.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6e292e1c5922f8a4c96ae4cfb85107e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: