I deleted by accident my main camera and I don’t know how to make another one.
,I deleted my main camera by accident and I don’t know how to make another one.
Right-click on the hierarchy, and add a new camera. Then, in the Inspector, make sure that the Camera is set to orthographic. This means that it will not have any perspective (that is what you need in a 2D game). Next, go up, and under the “tags” dropdown, choose, “Main Camera”. And, there you go, you have made a Main Camera for your 2D game! Hope this helps, and if it did help you, accept this as the best answer.
In Hierarchy, Right Click > Camera
In the future, I would recommend that you google a simple question like this. Not only will you get a faster answer, but it will save other people’s time as well.