i have made a simple animation for moving the game camera from one site to another, for the purposes of showing a menu, and then, going to the zone of the game itself. I do this using the animation window of unity. When i run the game, the animation plays and the camera moves, so i suppose that is correctly associated with the camera. The thing is that i want to control the animation from an script, so I can make it run when i want to, not at the begining of the game. The question is: how can i access the animation of the camera from an script? I tryed gameobject.animation.stop("animation") but i get this error: "MissingComponentException: There is no 'Animation' attached to the "Camera" game object" Thanks.
Edit-------------------
i'm adding the objects hierarchy of the project. hope it helps.