I have this script, but I want the object to move slowly, not instant. I tried with * Time.deltatime, but it doesn’t work. How can i do that??
var destination : Transform;
var destination2 : Transform;
var firstperson : boolean;
function Update () {
if (!firstperson)
{
if(Input.GetButtonDown("Cam"))
{
transform.position = destination.position * Time.deltatime;
firstperson = true;
}
}
if (firstperson)
{
if(Input.GetButtonDown("Cam2"))
{
transform.position = destination2.position;
firstperson = false;
}
}
}