Doing the Space Shooter but Altering it for College

Hello,

I’m doing an assignment to use the Space Shooter Game I created through Unity Tutorial vids but now I have to alter it by adding addiction UI features and a feature in game to encounter.

I made a 3D sphere and called it mines and i made it work in spawning waves and so on like asteroids.

Now? I want to know how to make mines invincible to the players… that you cannot shoot it down but dodge it like space Donkey Kong.

Is there a simple code to make mines invincible to the player? You cannot destroy it but gotta dodge load of mines.

If you need anything while finding the answer, let me know and I will get back to you tomorrow morning.

Any GameObject in the game won’t interact with the player at all unless you write code to make it happen. So find out where you have written code that causes the mines to be destroyed, and remove it.

1 Like

I managed to get it working, thanks for helping me.