Hello everyone,
I’m starting to use Unity, and i’ve set myself some goals to achieve in order to learn using it. The second is about coding a very simple game where you have to lead a ball using the arrow keys to the exit. I’m trying to get to use the mecanim system to animate my camera, but i don’t really understand the system.
What i want to do :
-the camera first fly a circle around the ball
-the camera follow the ball until the player get to the exit
-when the exit is reached, unzoom very far so the level disappear to the view, and start an eventual next level
The first step is easily done, i have an animator added to my camera object, which have have three states : intro, playing and end. Bbut i don’t understand how to do the second with the animator. Before i wrote a script where i save the position of the ball and then input the coordinates of the camera. But i don’t know how to do it with the animator object. Can u help me?
Thanks in advance. Gabriel.