Hello. I am trying to destroy an object .5 second after it is spawned. But, when I try to enter .5 in the variable, it automatically goes to 0. I tried to get around that by letting the variable be a whole number and then diving it by 10 inside the destroy function, but that doesnt work (it acts like it is 0) What is wrong?
var Time : int;
function Update () {
Destroy (gameObject, Time/10);
}