Ale mam problem ktory neviem vyriesit a nikde som nenasiel riesenie a nechapem to..
Mam premennu (boolean), funkciu OnTriggerEntry a OnTriggerExit.
var entry : boolean = false;
function OnTriggerEntry(other : Collider){
if(other.tag == "Player"){
entry = true;
print("Hello");
}
}
Function OnTriggerExit(other: Collider){
if(other.tag == "Player"){
entry = false;
print("Goodbye");
}
}
Ked to ulozim tak to vypise 3 nasledovne errory :
Assets/Hello.js(9,9): UCE0001: ';' expected. Insert a semicolon at the end.
Assets/Hello.js(9,24): BCE0043: Unexpected token: other.
Assets/Hello.js(9,40): UCE0001: ';' expected. Insert a semicolon at the end.
Ako viem co je v tych erroroch napisane ale neviem to opravit