#pragma strict
function Start () {
}
function Update () {
transform.position +- Vector3 (0, 10, 0) * Time.deltaTime;
}
the cube is not moving at all
#pragma strict
function Start () {
}
function Update () {
transform.position +- Vector3 (0, 10, 0) * Time.deltaTime;
}
the cube is not moving at all
+= , not ± (I wasn’t aware that would even compile).