I have this script:
function Start () {
}
function Update () {
}
function OnColliderEnter (Collision: player) {
If(nocturne.collider.tag == “Finish”);
var nocturne = nocturne.collider;
nocturne.audiosource.enabled; {
}; }
Please help me.
I have this script:
function Start () {
}
function Update () {
}
function OnColliderEnter (Collision: player) {
If(nocturne.collider.tag == “Finish”);
var nocturne = nocturne.collider;
nocturne.audiosource.enabled; {
}; }
Please help me.
In Javascript the variable name (player
) comes before the colon, and the type (Collision
) comes after the colon. At least, that’s what the example in the docs suggests.