#pragma strict
var brunoSound : AudioClip;
public var pissed;
function Update () {
if var Buddy = true; {
//DO THIS IF YELLING AT BUDDY IS TRUE
WaitForSeconds(5);
audio.PlayOneShot(brunoSound);
//SUBSOUND
var pissed = true;
}
//LET THIS REMAIN EMPTY
if var Buddy = false; {
}
}
Trying to play a sound after a certain quest is over. Gives this error:
Assets/Subsound.js(15,12): BCE0044: expecting (, found ‘var’.