Blocks are no longer being destroyed

Ever-since I followed the ‘Implementing Singleton Pattern’ lecture; The blocks are not getting destroyed on collision. I have re-watched earlier videos in the course including ‘Destroy GameObject’ but to no avail. My hierarchy, prefabs and scripts are the same as in the lecture. I hope someone is able to find a solution to this. Thanks.

Hi,

Welcome to our community! :slight_smile:

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? Make sure the name of the collision method is spelt correctly.

Destroy GameObject is Not affected by Single ton or any thing excepting the script where your Collision is detecting is attached with block and ball and block both have Collider and by mistake there not ticked on “is trigger” and check it with your hierarchy’s gameobject

This topic was automatically closed after 37 hours. New replies are no longer allowed.

Privacy & Terms