Objective: Challenge the Camera Trigger.
In the first step create a variable called a gameObject called cameraProggresionAngle.
Now Assign each camera angle which is renamed as camera 1 to six and assign it when the main camera should take that position by dragging the camera with a number in the game Object field to the camera progression angle in the inspector.
In this step write pseudo code for this problem to break the problem into pieces to make things easy to tackle.
We use a static class of the main camera to access the main camera which is Camera.main to assign position and rotation.
Note: A static object allow ass to call the method by class level, we don't need to cache anything.
This is how I tackle this challenge, come join me at www.gameDevHq.com
See you in the next article let’s make some games.