I want the end area of my game to be locked until the player has destroyed all the targets in the area. After they have did that then they can pass through the collider to the end game trigger to reach the end menu.
My problem is that I can’t seem to figure out how to do this. I’ve set a variable to record the number of targets left in the scene. I don’t know what to do after this.
Scripting done is in C# so if you post code then C# is preferable.
This is a project for uni.
Any help is appreciated, thanks ![]()