Udělal jsem to takto, ale nejde to:
var AudioFile : AudioClip;
var alreadyUpdated = false;
function Update() {
if (!alreadyUpdated && Input.GetKey(KeyCode.X)) {
alreadyUpdated = true;
}
}
{
audio.clip = AudioFile;
audio.Play();
}
Píše to chybu expecting :, found '='.