I am developing a 3D hack and slash game. I am a beginner and i would like some help in scripting a C sharp script that will eliminate walls/boundaries/colliders when enemies in that certain area is killed. Also, if possible can we add an enemy spawner script where enemies will be spawned at the unlocked area after killing the previous enemies. Any help would be highly appreciated.
You could try making a bool, have it set to false when the enemies aren’t defeated, then upon the enemy defeat set the bool to true and set the collider to isTrigger or disabled.