Learn to code by making 2.5 D Space Shooter
Objective: Convert our 3D prototype to Production Ready
In order to this we need to Import in our assets from FileBase to our project
The first thing we need to go file base to download our high quality assets and Import to our project.
Now Lets Change our Project mode from 3D to 2D to take full advantage of our sprite Assets.
Lets add our background Image to make our game look great , then lets make our background to be far from any object to avoid object to render on behind of our background.
Lets replace our Player 3D to Player 2D, with all other component need to be 2D whether its collider, Rigidbody etc.
Replace enemy 3D to enemy 2D, with all other component need to be 2D whether its collider, Rigidbody etc.
Final Lets Replace Laser3D to Laser2D the add box collider2D ,Rigidbody2D and don't forget to add laser prefab to avoid Missing null reference.
In order for collision to work we need to change OnTriggerEnter to OnTriggerEnter2D and its parameter to collision2D.Than tag Player to Player Enemy to Enemy Plus Laser to Laser.
This is how we convert our Project from 3D project to 2D project