Hi guys,
I did search the internet for this one, but the answers I found could not directly help me. I am fairly new to unity scripting and I came here to see if you guys knew how to change the camera viewport like an animation. I have a main menu for my game setup with two 3D Text objects, both with a java script that will change the color of the text when I hover over it and change the scene to the 1st level if it is not set to quit button. How do i make it so that when I click the “Settings” button, the camera will turn around smoothly to look at another set of 3D Text objects?
Here is the code I have for the color change and load level.
//Determines if 3D Text object is the quit button
var isQuit = false;
//When the mouse hovers over the box collider
function OnMouseEnter ()
{
renderer.material.color = Color.blue;
}
//When the mouse stops hovering over the box collider
function OnMouseExit ()
{
renderer.material.color = Color.white;
}
//When the mouse relases the click button.
function OnMouseUp ()
{
//If is the quit button
if ( isQuit )
{
//Application will quit
Application.Quit();
}
//If not the quit button, assuming it is the "Play" button
else
{
//Game will load the Game World.
Application.LoadLevel(1);
}
}
Please help if you can, or comment if you have tips, thanks.
Thanks. :)
– Whutchison