Hello, I am having a problem with a script. I am making an object enable and disable. But, no matter what I do, the object always appears.
Here’s the script I am using:
var TL : TL1;
function Start () {
TL.enabled = false;
}
function Update () {
if (Input.GetKeyDown (KeyCode.DownArrow)) {
TL.enabled = true;
}
if (Input.GetKeyUp (KeyCode.DownArrow)) {
TL.enabled = false;
}
}
Thanks