This question was
closed Oct 24, 2015 at 04:25 PM by
Blade666 for the following reason:
Other
Question by
Blade666 · Oct 24, 2015 at 04:30 PM ·
javascriptscripting problemerrorscript.error message
Getting error on lap counter script JS
I am getting the following error Assets/LapCounter.js(4,13): BCE0034: Expressions in statements must only be executed for their side-effects. and i dont know why here is my script (i am a newbie)
#pragma strict
var Lap: int;
function Start () {
Lap == 0;
}
function Update () {
if (Lap ==3);
}
function OnCollisionEnter(collision: Collision)
{
Lap++;
}
Comment
Follow this Question
Related Questions
"The associated script cannot be loaded" 0 Answers
"The associated script cannot be loaded." 0 Answers
Object reference not set to an instance of an object (c#) 0 Answers
An instance of type 'UnityEngine.Behaviour' is required to access non static member 'enabled'. 0 Answers
Can't Add Script Behavior... 2 Answers