Help!
I need a camera to move from on place to the other on the click on the “option” button , which is where this code is.
var trans : Transform;
var cam : Camera;
function OnMouseEnter(){
renderer.material.color = Color(1,0,0);
}
function OnMouseExit(){
renderer.material.color = Color(1,1,1);
}
function OnMouseDown(){
}
function OnMouseUp(){
iTween.MoveTo(cam,{trans, "time":2});
}
The code’s wrong.
Please help.
Thanks,
Hawx