game(scripts): rename & stdise Trash -> TrashBinTracker

This commit is contained in:
Mark Joshwel 2025-02-15 00:12:13 +08:00
parent 3a2aae335c
commit 6c16b62c1f
2 changed files with 6 additions and 11 deletions

View file

@ -1,14 +1,12 @@
/* /*
Author: Reza * Author: Reza
Date: 4/2/25 * Date: 4/2/25
Description: To track how much trash has been thrown in the trashbin * Description: To track how much trash has been thrown in the trash bin
*/ */
using System.Collections;
using System.Collections.Generic;
using UnityEngine; using UnityEngine;
public class Trash : MonoBehaviour public class TrashBinTracker : MonoBehaviour
{ {
private BedroomTask bedroomTask; private BedroomTask bedroomTask;
@ -17,10 +15,7 @@ public class Trash : MonoBehaviour
// Find the BedroomTask script in the scene // Find the BedroomTask script in the scene
bedroomTask = FindObjectOfType<BedroomTask>(); bedroomTask = FindObjectOfType<BedroomTask>();
if (bedroomTask == null) if (bedroomTask == null) Debug.LogWarning("BedroomTask script not found in the scene!");
{
Debug.LogWarning("BedroomTask script not found in the scene!");
}
} }
private void OnTriggerEnter(Collider other) private void OnTriggerEnter(Collider other)