Hi, I am working at my game until this error showed up.
I have this code for moving a object:
var straal;
function Update () {
var straal = 3.0;
transform.position += straal;
}
and this error:Assets/Piss.js(5,22): BCE0051: Operator '+' cannot be used with a left hand side of type 'UnityEngine.Vector3' and a right hand side of type 'float'.
anyone knows the solution?