So i want when i click on the text “OPTIONS” the camera to move over to the table. I have already made the animation and here are the scripts i use.
function OnMouseUp()
{
transform.animation.Play(“Camera”);
}
i use this code in the 3d text but it changes the position of the text not the camera’s. I think i have to put a reference to the Main camera on the 3d text script. Anyone can help ?