hi,
i set the targetframerate in a javascript file attached to the MainCamera, but when i build and run the game ignores the command and runs at max speed.
Heres the code:
var speed:float;
function Awake () {
// Make the game run as fast as possible in the web player
Application.runInBackground = true;
Application.targetFrameRate = 3;
}
function Start () {
}
function Update () {
if(Input.GetKey("w"))
{
transform.position.y += speed * Time.deltaTime;
}
if(Input.GetKey("s"))
{
transform.position.y -= speed * Time.deltaTime;
}
}
is there any way to fix this?
thanks in advance!