This is a trash game
- September 23, 2024
- Boom Guy
Press left arrow to throw the trash to the recycle bin, press right to throw to the non-recycle bin. Get 45 points before running out of time. Lecture Requirements: void ThrowTrash(Transform targetBin) I used a function with parameter to direct the trash thrown to the trash bins. bool IsTrashCorrect(GameObject trash, Transform targetBin) A bool function with return is used to check is the…